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?