Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[om2m-dev] OM2M - MQTT Request and Response

Dear Team,

I am able to set up oneM2M with Rest MongoDB. 

I am now trying to make MQTT work as well. I have enabled the MQTT bundle, and am able to connect with Mongo DB as well. 

However, when I am sending the request to create AE (or even any retrieve request), it responds on the resp topic saying "No Operation Provided". 

Any advice on what is wrong with the payload json or why the operation is recognized would be very helpful...


The topic that I have used: 

/oneM2M/req/origin/in-cse/json

The payload is : 
{
  "m2m:rqp" : {
    "fr" : "origin",
    "to" : "/in-cse",
    "op" : 1,
    "rqi" : 123456,
    "pc" : {
      "m2m:cnt" : {
        "rn" : "ae-nmcu"
      }
    },
    "ty" : 2
  }
}

The response topic:
/oneM2M/resp/in-cse/origin/json

The response I receive:
{
   "m2m:rsp" : {
      "m2m:rsc" : 4000,
      "m2m:pc" : "No Operation provided",
      "m2m:fr" : "/in-cse"
   }
}

Regards,
Samar



Back to the top