Update switch.mqtt.markdown (#1923)

Fix `mosquitto_pub` example to work with example code.
This commit is contained in:
Fredrik Lindqvist 2017-01-30 22:27:25 +01:00 committed by Fabian Affolter
parent 35a6b3d7ed
commit ba09360ce4

View File

@ -71,5 +71,5 @@ switch:
For a check you can use the command line tools `mosquitto_pub` shipped with `mosquitto` to send MQTT messages. This allows you to operate your switch manually: For a check you can use the command line tools `mosquitto_pub` shipped with `mosquitto` to send MQTT messages. This allows you to operate your switch manually:
```bash ```bash
$ mosquitto_pub -h 127.0.0.1 -t home/bedroom/switch1set -m "ON" $ mosquitto_pub -h 127.0.0.1 -t home/bedroom/switch1 -m "ON"
``` ```