Experiments with @patience4711s read-APSystems-YC600-QS1-DS3 project and platformIO to read sun harvest data out of an APSystems inverter (solar power).
Targetted microcontroller is the ESP8266, build system an Ubuntu 18.04
- My C and C++ skills are rusty (at best).
- Project layout/ app architecture for an embedded system puts different spotlights then when building a web application with Ruby on Rails.
- Still not sure about the trade-off between global state and e.g. buffers and local variables.
- Also, I tend to think of headers as the interface to a module (you find in zigbee.h what you want to call if you are NOT in zigbee.cpp).
- On a similar line, going object-oriented C++ or module-based C or something else is yet up for grabs.
- I am ditching vim for platformio here, but lets see how long it'll last.
- Will need to look into general and especially embedded conventions, e.g. https://barrgroup.com/embedded-systems/books/embedded-c-coding-standard . Or GNU/Linux or GTK...
SoftwareSerial
might help in developing and debugging (currently we throw away our possibility to debug to Serial, because that is remapped to the zigbee module). Or useSerial1
?
/*
- Feature Ideas:
- -> Real Captive Portal for easier access.
- -> MultiMode to feed into another network
- -> Button to switch on / off Wifi
- -> LCD Display */
Using sassc
and yui-compressor
:
cd src/css
sassc mypico.scss | yui-compressor --type=css > mypico.css
# or use script src/css/compile-css
Unclear to me, but we are allowed to hack.
Copyright of all zigbee related code 2021-2023 @patience4711, other code 2023 Felix Wolfsteller.
Code by Felix Wolfsteller is released under the AGPLv3+.
In src/css/picocss
, a compiled version of pico.css is used, copyright Lucas Larroche, licensed under the MIT.