1
2
3
4
5
6
7
8
9
10
11
12
13
| #!/bin/bash
|
| hostname="weike-iot.com"
| port=8013
| uid="lingyun"
| pwd="lingyun"
|
| options="-h $hostname -p $port -u $uid -P $pwd"
|
| topic="\$Sys/Studio/Downlink"
|
| set -x
| mosquitto_pub $options -t $topic -m '{"id":"RPi3B#01", "leds":[{"red":"on","green":"off","blue":"on"}]}'
|
|