Skip to content

LED Config

Controls the four LEDs on the device. Each LED can be set to ON, OFF, blink, flash, or pulse for a precise duration.

Key path: devcfg.led

{
"devcfg": {
"led": {
"led0": "P100",
"led1": "S0",
"led2": "F0",
"led3": "B0"
}
}
}

Note For one-shot LED commands, use the corresponding actions: {"a":"led0","p":"P100"} — see LED actions. The devcfg.led keys set the LED’s state/default directly; prefer the action form for one-off commands to keep behaviour consistent with the rest of the app/actions API.

LED 0 behaviour.

Configuration variables

  • Type: string (LED command)
  • Default: "P100"
CodeMeaning
S1Set ON
S0Set OFF
B1Blink fast
B0Blink slow
F1Flash long
F0Flash short
P + numberPulse for number × 10 ms (e.g., P100 = 1 s)
{ "devcfg": { "led": { "led0": "F1" } } }

LED 1 behaviour. Same command syntax as led0.

Configuration variables

  • Type: string (LED command)
  • Default: "S0"
{ "devcfg": { "led": { "led1": "B0" } } }

LED 2 behaviour. Same command syntax as led0.

Configuration variables

  • Type: string (LED command)
  • Default: "F0"
{ "devcfg": { "led": { "led2": "P50" } } }

LED 3 behaviour. Same command syntax as led0.

Configuration variables

  • Type: string (LED command)
  • Default: "B0"
{ "devcfg": { "led": { "led3": "S1" } } }