Skip to content

COMMAND Reference (Code-Aligned)

MQTT Topics

  • Receive command: MQTT_SUBSCRIBE_TOPIC = /mqtt/server
  • Publish response: MQTT_PUBLISH_TOPIC = /mqtt/node

Accepted Commands

  • SENSE,ONLINE,F=<freq>,D=<sec>
  • SENSE,ONLINE,STOP
  • SENSE,ONLINE,STATUS
  • SENSE,OFFLINE,F=<freq>,D=<sec>[,DL=<delay_sec>]
  • SENSE,OFFLINE,F=<freq>,D=<sec>[,TIME=<YYMMDDHHMMSS>]
  • SENSE,OFFLINE,STOP
  • SENSE,OFFLINE,STATUS
  • SENSE,RT,START[,F=<freq>]
  • SENSE,RT,STOP
  • SENSE,RT,STATUS
  • SENSE,RT,DETECT=ON|OFF

Validation Ranges

  • Online F: (0, 300]
  • Offline F: (0, 4000]
  • Offline D: > 0
  • Offline DL: >= 0 integer seconds
  • RT F: (0, 10000]

Representative Responses

  • SENSE,OK,ONLINE,F=...,D=...
  • SENSE,STATUS,ONLINE,RUNNING=YES|NO,F=...
  • SENSE,OK,OFFLINE,F=...,D=...[,DL=...|TIME=...,DELAY=...]
  • SENSE,OK,OFFLINE,SAMPLES=...,FREQ=...,DUR=...,SD=OK|FAIL
  • SENSE,STATUS,RT,RUNNING=YES|NO,F=...