Module Integration Guides
...
ESP32
Rust ESP-IDF

Receiving Actions

2min

Actions are commands that platform sends to the client. The JSON format for Actions would look like :

JSON


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 :

Rust


We can also send the progress updates for actions using publish_action_status :

Rust


For example :

Rust


Check out examples for more details