forked from qigebixia/IoT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurl.sh
25 lines (13 loc) · 1.21 KB
/
curl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
curl -i --request PUT --data "{\"switch\":1}" http://127.0.0.1/index.php/switches/1/switch
curl -i --request POST --data "{\"code\":0}" http://127.0.0.1/index.php/feedback/led1
curl -i --request POST --data "{\"type\":\"switch\",\"value\":7}" http://127.0.0.1/index.php/devices/1
curl -i --request POST --data "{\"type\":\"step\",\"switch\":7,\"controller\":1}" http://127.0.0.1/index.php/devices/7
curl -i --request PUT --data "{\"switch\":1}" http://192.168.1.1:8080/index.php/switches/1/switch
curl -i --request POST --data "{\"code\":0}" http://192.168.1.1:8080/index.php/feedback/led1
curl -i --request POST --data "{\"type\":\"switch\",\"value\":7}" http://192.168.1.1:8080/index.php/devices/1
<<<<<<< HEAD
curl -i --request POST --data "{\"type\":\"step\",\"switch\":7,\"controller\":1}" http://192.168.1.1:8080/index.php/devices/7
mosquitto_sub -v -t mqttdevice/1 -h 192.168.1.1
mosquitto_pub -t mqttdevice/1 -h 192.168.1.1 -m "{\"type\":\"switch\",\"value\":0}"
curl -i --request POST --data "{\"type\":\"switch\",\"value\":7}" http://192.168.1.1:8080/index.php/mqttdevices/1
curl -i --request POST --data "{\"type\":\"step\",\"switch\":7,\"controller\":1}" http://192.168.1.1:8080/index.php/devices/7