Developing IoT Projects with ESP32 by Vedat Ozan Oner

Developing IoT Projects with ESP32 by Vedat Ozan Oner

Author:Vedat Ozan Oner
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2021-07-09T00:00:00+00:00


Now we should have our secure firmware server up and running. To verify it, we can use openssl again. We also need to check whether the firewall blocks port 1111 and add an exception if necessary:$ openssl s_client -connect localhost:1111

CONNECTED(00000003)

Compile another version of the firmware and copy it to the server folder:(penv)$ pio run -t clean

(penv)$ echo "0.0.2" > version.txt

(penv)$ pio run

(penv)$ cp ./.pio/build/az-delivery-devkit-v4/firmware.bin server/

To see if the devkit downloads the new firmware, press the reset button and see the messages in the serial monitor. We can also observe that, after the reboot, the application checks the server again for any new firmware, but it aborts the process since the version numbers match this time.Tip

If you encounter any problem with the openssl web server, any other secure web server should work. There is also a simple Python example that you can help yourself to here: https://gist.github.com/dergachev/7028596.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.