Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Developing IoT Projects with ESP32 - Second Edition

You're reading from  Developing IoT Projects with ESP32 - Second Edition

Product type Book
Published in Nov 2023
Publisher Packt
ISBN-13 9781803237688
Pages 578 pages
Edition 2nd Edition
Languages
Author (1):
Vedat Ozan Oner Vedat Ozan Oner
Profile icon Vedat Ozan Oner

Table of Contents (15) Chapters

Preface Introduction to IoT development and the ESP32 platform Understanding the Development Tools Using ESP32 Peripherals Employing Third-Party Libraries in ESP32 Projects Project – Audio Player Using Wi-Fi Communication for Connectivity ESP32 Security Features for Production-Grade Devices Connecting to Cloud Platforms and Using Services Project – Smart Home Machine Learning with ESP32 Developing on Edge Impulse Project – Baby Monitor Other Books You May Enjoy
Index

Upgrading firmware from an HTTPS server

In the first example of the OTA update, we will start a file server in the local network and download new firmware from this server to upgrade the device. The file server is a simple Python Flask application that runs on our development machine. The device firmware will poll the firmware information from the server periodically and if it shows the firmware version on the server is different from the version that runs on the device, then it will download the new firmware from the server for an upgrade.

One of the important points in OTA updates is that we want a secure communication channel between the server and devices to prevent any unwanted ears from listening to the network traffic and intercepting the new firmware while transferring to the devices. Thus, we will configure the server with TLS encryption in this example. The Flask application will use a TLS certificate to encrypt the HTTP traffic between the parties. On the ESP32 application...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}