Hi,
I have a perfectly working firmware.
Now I want to make it more robust so I add this line of code:
SYSTEM_THREAD(ENABLED);
Once I flash this updated firmware, my photon led stays solid cyan and it goes offline. The only way out is safe mode.
What could I be doing wrong?
I thought by enabling the system thread the wifi connection would be done in a separate thread, but somehow the wifi connection is not done at all or stuck somewhere.
Recovery: once I put the photon in safe mode, I comment out the SYSTEM_THREAD line in the firmware and flash again, my photon goes back to normal execution.
thank you for any tips,
Gustavo.
PS: you can find the firmware here: https://github.com/gusgonnet/minimalistThermostat