This adds some configuration I've been using for development, OTA uploading of the firmware and filesystem, because I frequently have my E-TKT physically distant from my development computer and also the soldering on my USB connector is not super rock solid. I figured it might be useful for anyone else developing on this project in the future. OTA is accomplished by:
Enabling a #define in the optional configuration, which causes AsyncElegentOTA to hook into the webserver
Adding mDNS config for the e-tkt
Adding a special platformio target "upload-ota" that uploads firmware/filesystem over WiFi
To accomplish seamless upload, I've also configured the E-TKT to advertise itself and its webserver over mDNS along with some unique service text data in case anyone wants to automatically identify with automatic network discovery in the future. The OTA upload script then uses the mDNS address to find the device, but of it can also be specified by IP address by modifying platformio.ini. I've found the mDNS lookup works well on Windows and Linux, which is likely sufficient for development purposes. MacOS is likely to also work but I can't test it.
To try out using OTA, you'd do the following:
Uncomment #define OTA_ENABLED in optConfig.cpp
Connect the E-TKT over usb, and upload using either the default platformio environment or upload-serial
Disconnect USB
Change plaformio target to upload-ota
Enjoy wireless uploading of firmware and filesystem data.
Once enabled, you can also visit http://e-tkt.local/update to manually upload firmware/filesystem binaries.
This adds some configuration I've been using for development, OTA uploading of the firmware and filesystem, because I frequently have my E-TKT physically distant from my development computer and also the soldering on my USB connector is not super rock solid. I figured it might be useful for anyone else developing on this project in the future. OTA is accomplished by:
To accomplish seamless upload, I've also configured the E-TKT to advertise itself and its webserver over mDNS along with some unique service text data in case anyone wants to automatically identify with automatic network discovery in the future. The OTA upload script then uses the mDNS address to find the device, but of it can also be specified by IP address by modifying platformio.ini. I've found the mDNS lookup works well on Windows and Linux, which is likely sufficient for development purposes. MacOS is likely to also work but I can't test it.
To try out using OTA, you'd do the following:
#define OTA_ENABLED
inoptConfig.cpp
upload-serial
upload-ota
Once enabled, you can also visit http://e-tkt.local/update to manually upload firmware/filesystem binaries.