Closed maximiliani closed 3 years ago
We need synchronous encryption for a secure communication. The key will be generated by the server and sent directly after the firmware upload. So we don't need to compile the firmware every time! For the Serial Console we could use this library: https://github.com/Fazecast/jSerialComm
After the upload via OTA-Flash the ESP has to go in Rescue Mode, which means he opens a WiFi-network with web-UI. In this way we won't need an asymmetric encryption and only one firmware. On the web-UI of the ESP, the user has to type in the WiFi credentials and the given encryption key from the server, which will be displayed to the user. This also the Rescue Mode of the ESP, which will also be installed on the other ESPs, because it makes sense.
outsourced to https://github.com/PrivateHomeIoT/ESPFirmware