Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 585 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 585 Bytes

MyOTA

Macro functions for using ESP8266 OTA (Over the Air) Update, including my usual setting of OTA

Example and Usage

#include <MyOTA.h>

setup() {
  ... establish WiFi connection ...
  setupMyOTA();
  ..
}

loop() {
  loopMyOTA();
  ....
}
  • setupMyOTA() should be called once, after WiFi connection is established.
  • loopMyOTA() must be called after setupMyOTA() is called. It should be called repeatedly in short interval, to avoid losing OTA accesses.