Skip to main content



      Home
Home » Eclipse Projects » OM2M » How to update content from http to mqtt?
How to update content from http to mqtt? [message #1801443] Sat, 19 January 2019 06:10 Go to next message
Eclipse UserFriend
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 135 times)
  • Attachment: osgi.gif
    (Size: 67.45KB, Downloaded 120 times)
Re: How to update content from http to mqtt? [message #1801533 is a reply to message #1801443] Mon, 21 January 2019 20:58 Go to previous message
Eclipse UserFriend
"{\"m2m:rqp\":{\"m2m:fr\":\"admin:admin\",\"m2m:to\":\"/in-cse/in-name/OCFBridge/Binary_Switch/binarySwitch\",\"m2m:op\":3,\"m2m:rqi\":123456,\"m2m:pc\":{\"hd:binSh\":{\"powSe\":\"true\"}},\"m2m:ty\":28}}"

~~colse this question~~
Previous Topic:mqtt update content
Next Topic:Multiple Content Instance Delete under Container throwing an error
Goto Forum:
  


Current Time: Fri Jul 25 09:33:02 EDT 2025

Powered by FUDForum. Page generated in 0.05565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top