Reputation: 1
I'm using flutter_reactive_ble to connect and read temperature from thermometer device in background mode. My thermometer devices are advertising every 3, 6, 9 or 12 minutes based on the device calculation. But when running there is sometime that my app doesn't get data from device for 1-2 hours or more.
What I tried is connect to the device -> read data -> disconnect -> wait 2 seconds -> reconnect to the device. This will be forever until the user unregister the device from the app. The app will run 1 or several days smoothly as I expected and then it started not receiving data for 1-2 hours and then received data again. Don't know why it happens. So my expectation is that the app will get data from the device every 3,6,9 or 12 minutes is at least. Is there anyone have experience on this case?. Or a way to troubleshoot it? Any comment will help me very much.
Upvotes: 0
Views: 90