I have been working with the ESP8266httpUpdate library for a while now, I want to change the frequency of the blinking built-in led of the esp8266, I couldn't figure out how this library is commanding the led though, only private variables and a function to assign them to a local one, also, I intend to integrate the same functionality in another library so I need to know how it works, thanks!

library: ESP8266httpupdate

library function:

void setLedPin(int ledPin = -1, uint8_t ledOn = HIGH)
    _ledPin = ledPin;
    _ledOn = ledOn;

using the private variables _ledPin and _ledOn

  • Add a link to the library and post/mention the parts to save time for people looking into your problem. Like which private variables, which function. – Michel Keijzers Jun 24 '20 at 12:25
  • 1
    the Updater object from core blinks the LED github.com/esp8266/Arduino/blob/… – Juraj Jun 24 '20 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.