A repo to gather all the ESP-related stuff (sketches, schematics, etc). The main goal is to create a sketch-template that can be used when making new IoT-sensorstuff, etc.
- Activate AP-mode for configuration by pressing a button on the device
- In config-mode, present a webinterface for config og WiFi, MQTT, etc
- In normal mode, don't expose webinterface
- If unable to connect to configured wifi, don't start AP-mode (still wait for button for activation)
- Support for MQTT over TLS and authentication
Unable to find any good libraries/frameworks that supports MQTT over TLS! Many of them also exposes the webinterface in normal mode, which is bad for security. Some also defaults to AP-mode if normal mode fails, exposing configuration mode.
- https://lobradov.github.io/FOSS-Firmware-comparison-overview/#common-areas-for-improvement
- https://lobradov.github.io/Quick-look-at-home-iot-security/
- Implement ESP8266WebServer
- Implement DoubleResetDetector for entering config-mode (see examples here and here)
- Implement ArduinoJSON for saving/loading data using FS.h
- Use the two onboard LEDs to indicate config-mode, connected to wifi, etc. See example
- Implement encrypted MQTT (based on this example)
- Implement support for DHT-sensors using DHTesp
- NodeMCU v2 (Amica)