httpslocal / usecases

discussion about use cases
Other
17 stars 11 forks source link

Use case: Configuring of IOT device with web interface #47

Open wijnsema opened 3 years ago

wijnsema commented 3 years ago

IOT devices like sensors and actuators are usually small microcontrollers with some kind of network connection. These devices needs to be setup for communication with some edge server.

This setup is mostly done with an internal webserver. This service can be enhanced with a web interface.

My particular case is an ESP32 microcontroller is controlling several buttons and displays. This device has many settings:

Also the firmware must be upgradable.

To update these settings a JSON object can be downloaded and uploaded which contains the settings. I created an React (javascript) web application which makes this user friendly. This application is hosted on a secure https domain. However, if you make http (no https) call to the ESP32 these call are blocked because they are 'Mixed content'. So the webserver on ESP32 must support https!