Coding update
A short coding update, I choose an ESP32-C3 and make it run at 80MHz to keep it cool, we can always go up. No jet coding, just the “basic” setup ;-)
Design requirements
You may find the same list in main.cpp, the c++ code is the truth, this a snapshot in time.
- Small ledstrip, test for opacity
- OTA
- config
- save state (colour, mode and brightness)
- mqtt
- log over mqtt
- home-assistant
- plasma jetmode
- constant colour, with colour picker
Current state
At the moment, I have a solid foundation for all these kinds of projects.
All the next steps, apart from saving to the NVS, are ready, and I can carry on with the jet code.
The config uses ArduinoJson, mqtt is the standard PubSub code, and OTA is simply OTA with one exception: MQTT is disabled during the OTA, otherwise the OTA updates may fail.
The HTML is stored on LittleFS, along with the JSON config, after all, it hardly ever changes.