dotchetter / poolguy

An IoT project with the Atmel SAMD21 MCU to data harvest the temperature from swimming pools, and display it through various integrations.
MIT License
0 stars 0 forks source link

Device cannot reconnect upon exhausting a battery #1

Open dotchetter opened 3 years ago

dotchetter commented 3 years ago

Describe the bug Intermittent issue with the device, where on battery upon charging after complete depletion the device will not connect to Arduino IoT Cloud but appear to work normally otherwise.

To Reproduce Let the device exhaust a battery without USB plugged in. Charge battery separately. Plug in battery to the device to make it start up.

Expected behavior The device boots up after a newly charged battery is connected and functions normally by connecting to Arduino IoT Cloud as expected.

dotchetter commented 3 years ago

The issue seems related to UART, where debug prints in the ArduinoIotCloud library can soft lock the device if no UART reciever is detected on USB. This is purely speculation, but repeatedly proven in tests and provocation.