Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Announce a resource(Question about resource announcement)
Announce a resource [message #1785548] Mon, 16 April 2018 14:39
Ferenc Unghváry is currently offline Ferenc UnghváryFriend
Messages: 4
Registered: February 2018
Junior Member

I want to create a resource in MN-CSE to be announced to IN-CSE.
A MN-CSE and an IN_CSE run on my computer.
I tried to test resource announcement capability of OM2M with Application Entity resource. I sent the following message to the MN-CSE:


X-M2M-Origin: admin:admin
Accept: application/json
Content-Type: application/json;ty=3

{"m2m:ae":{"rn":"TestAE2","rr":false,"api":"","lbl":["Type/sensor","Category/light"],"poa":[""],"at": "/in-cse"}}

Then I was able to see the resource in mn-cse via Web interface but the value of field "at" (announcedTo) was undefined. On the console of MN-CSE the response message was:

   "m2m:ae" : {
      "rn" : "TestAE2",
      "ty" : 2,
      "ri" : "/mn-cse/CAE471820839",
      "pi" : "/mn-cse",
      "ct" : "20180416T151644",
      "lt" : "20180416T162203",
      "lbl" : [ "Type/sensor", "Category/light" ],
      "acpi" : [ "/sp-gateway-cse/acp-29790033" ],
      "et" : "20190416T151644",
      "at" : [ "/in-cse" ],
      "api" : "",
      "aei" : "CAE471820839",
      "poa" : [ "" ],
      "rr" : false

So the attribute "at" seems OK.

On the other hand I cannot see the announced application entity in IN-CSE.

How can I announce a resource?
Previous Topic:Hybrid addressing of a resource
Next Topic:MN-CSE registered in other MN-CSE
Goto Forum:

Current Time: Fri Jun 02 13:26:26 GMT 2023

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

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

Back to the top