Remote Control
Remote control is the default path: a client anywhere on the internet changes a Parameter, and the Node applies it. It is what the phone app does when it is not on the same network as the device, and it is the mechanism every other control feature is built on — Group control, Schedules pushed from the cloud, Automation actions and voice commands all end in the same Parameter write.
For the path that skips the cloud entirely, see Local control.
What the user sees
A control in the app — a toggle, a slider — that takes effect on the device, and a state that stays correct across every other client and session. Nothing polls, so a change made from one phone appears on another without a refresh.
How a parameter change travels
The path from a user tapping a toggle to that Node's state being visible to every other client:
Step 2 is a plain MQTT publish, not a write to the shadow's desired section. That single design choice explains most of Neo's runtime behaviour: control is fast and stateless, and it is also fire-and-forget, so a Node that is offline at that instant never receives the change. Node–Cloud Communication covers the consequences.
What the firmware must do
Nothing beyond the basics. Remote control is not a feature you enable — it is what
esp_rmaker_node_init() and esp_rmaker_start() give you. Write a callback for each writable
Parameter and report state back when the value changes; the same callback serves writes from
every source, distinguished by the request source in its context.
Limits and caveats
No store-and-forward for control. A Parameter set on a disconnected Node is not queued for later delivery.
Fire-and-forget. A successful publish means the broker accepted the message, not that the device acted on it. Confirmation comes from the Node reporting its new state, so treat the reported value as the source of truth rather than the value you sent.
Related
- Local control — the same reads and writes, without the cloud in the path
- Groups and Group Control — one publish driving every Node in a Group
- Node–Cloud Communication — the topics and the offline semantics
- System architecture — where this path sits in the wider system
- Security model — how the scoped credentials in step 1 are issued