How to update content from http to mqtt? [message #1801443] |
Sat, 19 January 2019 11:10 |
lai roven Messages: 3 Registered: January 2019 |
Junior Member |
|
|
I want mqtt command to update the "powSe" field of binarySwitch( such as osgi.gif) from http binding. Below is my example, but the update failed. How to fix it?
mosquitto_pub -t "/oneM2M/req/OCFBridge/in-cse/json" -m "{\"m2m:rqp\":{\"m2m:fr\":\"admin:admin\",\"m2m:to\":\"/in-cse/in-name/OCFBridge/Binary_Switch/binarySwitch\",\"m2m:op\":3,\"m2m:rqi\":123456,\"pc\":{\"m2m:cin\":{\"cnf\":\"application/json\",\"con\":{\"hd:binSh\":{\"powSe\":\"true\"}}}},\"m2m:ty\":28}}"
-
Attachment: osgi_http_ok.txt
(Size: 1.95KB, Downloaded 110 times) -
Attachment: osgi.gif
(Size: 67.45KB, Downloaded 98 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds