Rust ESP-IDF
Receiving Actions
Learn how to handle actions in our platform with this informative document. Understand the importance of defining and registering an action handler, and discover examples of using the “publish_action_status” function for progress updates. Find step-by-ste
Actions are commands that platform sends to the client. The JSON format for Actions would look like :
NOTE: payload is optional, so it may or mayn’t be there
To handle an incoming action, you need to define and register an action handler. An action handle must take Action and &ByteBeamClient as arguments :
We can also send the progress updates for actions using publish_action_status :
For example :
Check out examples for more details