Hi,
I think I’m getting close to making things work with SmartConfig and Thinger. For deep sleep functionality, one must connect the RST
and D0
pins on the chip. However, on many dev boards they chose to wire the BUILTIN_LED
to the D0
as well. Just check for yourself, the pins_arduino.h
for multiple variants: https://github.com/esp8266/Arduino/tree/master/variants
Anyway, this causes all kinds of crazy crashes because attempting to write to D0
triggers resets and zombie state on recovery.
I suggest we have a way to have a way of disabling these (there’s another few lines down). Wouldn’t want to completely remove it, as it seems to be useful outside of a deep sleep context.
Help me understand the Thinger.io client library approach/idioms and I’ll send the PR I’d like to do better than a top-level
#define