1 of 2 people found this helpful
"this question will cause the app status is out of sync with device status" -> On what condition it goes out of sync? Could you please explain the steps?
If you are talking about the mesh mobile application (android/ios), then I believe WICED version of the application is stateless, which means it won't automatically update the status of the device if the user close and reopen the app. But the mesh device remember it's last state properly. I believe this issue has been solved in the latest version of mesh mobile app which comes with ModusToolbox.
in some special applications, for example the motor control, as we know, the step motor move from a position to other position
, the process need a longer time than the light is turned on/off .I think the node should report the position to app after the motor
1 of 1 people found this helpful
Is the question about the lightness and color temperature or a step motor :-). For the Light CTL model, See apps/snip/mesh/mesh_light_ctl_server.c, the call is
Note that your device needs to be configured for Publication to send unsolicited messages.
For the step motor, unfortunately there is no standard model. You can use Vendor Specific model and send whatever messages you need.
Note that you should be pretty careful with mesh messages, because the bandwidth is very limited. If your application does not need to send messages, do not send them. If phone UI does not require update more than once per second, configure your step motor to publish data once per second. You can also configure for publication when entering the screen and unconfigure when exiting the screen.