Temperature and Humidity together
Hi,
Using Android API, data from those two modules were streaming, however, at another attempt, the humidity ScheduledTask gets faulted. I was not calling stop/remove() to the ScheduledTask, could this be the reason? Every time now it is faulted. Is there a way to have the device a fresh start (or async reset/reboot?).
Tnx.
Comments
Not enough information.
Hi,
As said, I need to read from a single MTR device's Humid module, Temperature, and Settings Battery modules. The Humid module gets faulted at the ScheduledTask call, but the Temperature always can read. The Battery also not getting to the reading level all the time. Below is the code.
Try doing only one thing at a time before adding more sensors. Are you able to do just the humidity?
Yes, humidity now working by itself with no code change. But when I kept it running the whole night in data reading mode, in the morning I found the device faulted and no reading coming. Also, could you explain - try doing only one at a time? I should start one sensor and once data is coming, then start the second sensor - like this? Any workable code or tutorial is appreciated for multi-sensor operation and fault management.
No you can turn on the sensors at the same time, this was just to help you troubleshoot and make sure the issue is with your code and not the sensors.
If the humidity works then that's good.
Now try to add the temperature.