I have a widget that connects to an arduino nano, throgh an hm-10 BLE module. The App turns a led on in the arduino, and I need to turn it off when max battery percentage is reached and either shutdown is enabled or disabled.
Right now the led only turns off when shutdown is enabled. I also need to set a thunderbolt image on top of the battery image, when charging. Please check that the app doesn't crash, and that it uses android compile sdk 26.