Hi,
I have built a small mesh network with 5 CSRMesh boards (1010). I turn on two of them using mobile application (Android/iOS). Then I close the application and reopen the application. Since there is no sync between mobile app and CSRMesh boards, app shows everyone is off. How do we get the status of (ON/OFF) CSRMesh modules at the beginning inorder to update the mobile app's status?
Please use LightModelApi.getState(deviceId) to get the status of the node.
Thanks,
We chose to create status packets and send it out every 20 seconds. We use PING messages and encode the current status of the light, with battery and temperature. Then inside the app we continously scan for mesh status packets and update the current screen. This way you always know what all lights status is. You find our app on Github.
Thanks..
If you do not mind, could you post the GitHub link please.
Search for aircable on Github