I am trying to duplicate the Commercial Power Monitor as described in this post
My boron is running 2.0.0 and when commercial power is restored, rather than returning to commercial power, the boron constantly switches back and forth between battery and USB power as shown in this Ubisoft’s graph.
The charging led flashes amber and the only way to break the cycle is to disconnect both battery and usb and then connect usb first then reconnect th3 battery.
Do I need to downgrade to version 1.4.4 as in the previous post?
I modified the code in the example to send the powerSource value from the DiagnosticsHelperRK.h to Ubidots instead of a “sanitized” 0 and 1.
If I boot the Boron on battery power, it reports a value of 5 (POWER_SOURCE_BATTERY). When I connect a USB cable to the Boron, it reports a 1 (POWER_SOURCE_VIN) and then starts bouncing back an forth between 1 and 5 every 3 to four seconds. Here is a sample where I coded the Boron to send the powersource to Ubidots.