SolarOS 4.13.4 manual · command
mqtt
Show broker, authentication, connection, traffic, queue, and error status without revealing the password.
Usage
| Usage | Description |
|---|---|
mqtt status | Show broker, authentication, connection, traffic, queue, and error status without revealing the password. |
mqtt connect [mqtt[s]://host[:port] [username [password]]] | Connect to a broker and save supplied connection settings; omit them to reuse saved settings. |
mqtt disconnect | Disconnect and stop the MQTT client. |
mqtt publish <topic> <payload> [qos] [retain] | Publish a message with optional QoS 0–2 and retain flag. |
mqtt subscribe <topic> [qos] | Subscribe and print received messages until app-exit or q. |