Add configuration to allow OTA updates #41
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.