Skip to main content

Control one LED by CID

Use Remocon esp32-cid-led. Connect an external LED through 330 Ω to GPIO4. Set WIFI_SSID, WIFI_PASS, and IO_HOST (io.remocon.kr, TCP 55488). Upload and wait for the board's ready CID.

  1. Connect the workbench to wss://io.remocon.kr/ws and choose the CID LED preset.
  2. Send EMPTY to #search. A device replies on #notify with its CID.
  3. Apply that CID. Subscribe to deviceCID@$name, deviceCID@$ui, and deviceCID@$state.
  4. Send TEXT on, off, or toggle to deviceCID@.
  5. Confirm the device's published state and its physical LED.

The device receives @, validates TEXT and command termination, applies the output, and publishes @$state. Its name ESP32-LED:Tutorial is a label/classification, not a group channel. Anonymous reconnects can assign a new CID; discover again instead of retaining a stale address.

Direct reception uses on('@', handler) or a topic-specific listener in JS 7.2.0. It does not use subscribe('@'). CID publication subscriptions such as deviceCID@$state are valid. See client API.