Module Integration Guides
...
ESP32
ESP-IDF
Receiving actions
2min
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:
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.
Updated 24 Jul 2024
Did this page help you?