You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build module that can do OTA following pattern, calling /update/
Build something on server to display headers and check what look like on ESP32
Return .bin
Ensure client installs and restarts
Think through different variations of node - e.g. which sensors etc, they'll all be different .bins
Think about path for projects
Rework so picks up by node; then by type;
Document process to build the .bin
Automate process - command line builds with various _local.h
Put on main server, then parameterize server somehow (note node has no other current reason to hit the http server)
Need a way for approved Organization users to upload bins
Way to notify devices to update now (rather than once an hour) - probably in the UX
Dropdown or similar to select which device to download.
Add the OTA version to the description uploaded at power up
Have server look at OTA version and refuse to update if newer (which will help with the developer problem)
- note same version, different MD5 means update so developer can either put on server in which case board self-updates (new MD5) or bump the version number and program via cord
** ESP32 **
See notes in ota.cpp on branch 37-OTA Appears cant use http
Think about lifetime of cert - read somewhere about using a root certificate.
** SPIFFS **
See instructable and notice Spiffs at
./Library/Arduino15/packages/{esp8266,esp32}/tools/mkspiffs I remember reading won't work as plugin with Arduino 2.x
Figure out how to use mkspiffs
Add to Server - probably in same directory as binary
Add to node - probably immediately after updates sketch
Document how to build the .spiffs
Further
Add server side of OTA into portal - so listens for update from browser.
Refactor for two reasons
a: use a project defined board name, so can change sensors etc on it and still get new code
b: Look for org/project/node org/node org/project/board org/board
c: this gets rid of the "+"
get board name from _local.h not built from "*_WANT"
See example on https://github.com/Juerd/ESP-WiFiSettings/blob/master/examples/ArduinoOTA/ArduinoOTA.ino
as will be integrated with the WiFi portal etc,
Also some examples at Mischianti
Probably want OTA when connected to WiFi
Need to understand how OTA is intended to work in Arduino - Instructions at https://www.instructables.com/Set-Up-an-ESP8266-Automatic-Update-Server/ look adaptable
bin
s** ESP32 **
See notes in ota.cpp on branch 37-OTA Appears cant use http
** SPIFFS **
See instructable and notice Spiffs at
./Library/Arduino15/packages/{esp8266,esp32}/tools/mkspiffs I remember reading won't work as plugin with Arduino 2.x
Further
The text was updated successfully, but these errors were encountered: