Skip to main content

How can I implement local control for my devices?

ESP RainMaker uses mDNS-based discovery and HTTP-based control so devices can be controlled on the local network without going through the cloud. This is faster and works offline (after initial provisioning).

Enable in sdkconfig:

  • CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE=y
  • CONFIG_ESP_RMAKER_LOCAL_CTRL_SECURITY_1=y (recommended)

Once enabled, a Local Control service is automatically added to the node. Devices appear as "Reachable on WLAN" in the phone app when on the same network. No extra firmware code is needed beyond enabling the options. You can also use the CLI with --local --pop <pop_value> for local get/set. For details, see Local Control Usage and Local Control Service.