andreisperid / E-TKT

open source embossed label maker
https://andreisperid.github.io/E-TKT/
MIT License
398 stars 19 forks source link

Add configuration to allow OTA updates #41

Closed sabeechen closed 1 year ago

sabeechen commented 1 year ago

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:

Once enabled, you can also visit http://e-tkt.local/update to manually upload firmware/filesystem binaries.

andreisperid commented 1 year ago

That's cool @sabeechen , thank you very much!

Now I'm thinking of adding a "update" button on setup that might lead to that page.