arduino
arduino copied to clipboard
Dependencies: Update platform SDK for `node-wifi-mqtt.ino` program
Original: https://github.com/hiveeyes/arduino/issues/58#issuecomment-1567357373
Problem
Updating the ESP8266 SDK on the node-wifi-mqtt.ino
program to espressif8266@^3
with GH-67 failed at ^1. It is probably our fault, because we are using other outdated libraries, or such.
Observations
After looking into the details, it turns out joaolopesf/SerialDebug might trip the build, as we receive similar error messages like outlined in https://github.com/JoaoLopesF/SerialDebug/issues/20 when updating to espressif8266@^3
.
SerialDebug.cpp:2384:46: error: reference to 'byte' is ambiguous
SerialDebug.cpp:2384:46: error: 'byte' has not been declared
SerialDebug.cpp:2486:61: error: reference to 'byte' is ambiguous
SerialDebug.cpp:5608:21: error: expected primary-expression before '(' token
Regarding this SerialDebug
library, I can find those comments in the changelog of the node-wifi-mqtt.ino
program we are trying to build here:
2017-04-07 Silence debug output by using SerialDebugger to reduce battery drain even more.
2021-05-02 Modernize code by using the SerialDebug library by Joao Lopes and
add build environment based on PlatformIO.
Is it sane? Do we need it for the purposes outlined there, to reduce battery drain even more? Can it be safely removed? Maybe there are better techniques "to turn off logging at runtime" in a similar manner. On the other hand, using the SerialDebug
library may have been utter nonsense ;].
With kind regards, Andreas.
P.S.: Those commands should get anyone interested to the right spot quickly.
git clone https://github.com/hiveeyes/arduino hiveeyes-arduino --branch amo/update-esp8266-sdk
cd hiveeyes-arduino/backdoor/node-wifi-mqtt
make