Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » mqtt update content(How to update contnt from http to mqtt?)
mqtt update content [message #1801444] Sat, 19 January 2019 11:17
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). Below is my example but the update failed. How to fix it? thk

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.gif
    (Size: 67.45KB, Downloaded 82 times)
  • Attachment: osgi_http_ok.txt
    (Size: 1.95KB, Downloaded 87 times)
Previous Topic:HTTPS notifications
Next Topic:How to update content from http to mqtt?
Goto Forum:
  


Current Time: Fri Mar 29 08:31:50 GMT 2024

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

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

Back to the top