Receiving actions
Learn how to create action handlers and map them to specific actions in the Bytebeam platform with this comprehensive document. It includes a code snippet for creating a handler for the “ToggleLED” action and mapping it. Additionally, discover three usefu
Actions are commands that the platform sends to the client. Every action has a type and we need to register an action handler for each action type. Following example shows a way to create action handler and map 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 the ToggleLED example sketch for a full-fledged example showing how to add the action and publish the action status response to bytebeam cloud.