Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:10 Go to next message
lai roven is currently offline lai rovenFriend
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 16 times)
  • Attachment: osgi.gif
    (Size: 67.45KB, Downloaded 17 times)
Re: How to update content from http to mqtt? [message #1801533 is a reply to message #1801443] Tue, 22 January 2019 01:58 Go to previous message
lai roven is currently offline lai rovenFriend
Messages: 3
Registered: January 2019
Junior Member
"{\"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: Sat Sep 21 21:36:38 GMT 2019

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

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

Back to the top