ESP-IDF
Receiving actions
Guide on receiving actions in Rust ESP-IDF
Actions are commands that platform sends to the client. The JSON format for Actions would look like:
On device end, we need to write an action handler for handling individual action based on the name. Following example shows a way to create action handler and mapping it to a particular action:
Action status response
While we execute the action, we need to send the progress back to the server so that the user can monitor the action remotely. To do so the following APIs can be used:
Have a look at toggle_led example app for a full fledged example showing how to add the action and publish the action status response to bytebeam cloud.