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
Hello,

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:


host: 127.0.0.1:8080/~/mn-cse

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

Body:
{"m2m:ae":{"rn":"TestAE2","rr":false,"api":"com.xyz.test","lbl":["Type/sensor","Category/light"],"poa":["http://127.0.0.1:3000"],"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" : "com.xyz.test",
      "aei" : "CAE471820839",
      "poa" : [ "http://127.0.0.1:3000" ],
      "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: Thu Apr 25 20:09:13 GMT 2024

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

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

Back to the top