Location creation [message #1770262] |
Wed, 09 August 2017 13:26 |
Clement Courtais Messages: 1 Registered: August 2017 |
Junior Member |
|
|
Hello !
I'm working on a project over OM2M and I'm trying to add a location on a sensor to be able to filter over it after. But I'm encountering a problem when I want to create a LocationPolicy. In fact I've read that the LocationPolicy was the ResourceType 10, but when I try to create one, this appaers in the console :
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/mysensor4,
content=<m2m:lcp xmlns:m2m rn="locationPolicy">
<los>2</los>
<lon>location</lon>
</m2m:lcp>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml;ty=10
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: ty=10
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/in-cse/in-name/mysensor4,
from=admin:admin,
resourceType=10,
content=<m2m:lcp xmlns:m2m rn="locationPolicy">
<los>2</los>
<lon>location</lon>
</m2m:lcp>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/mysensor4
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: ResourceType: 10 is not implemented
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=5001,
content=ResourceType: 10 is not implemented,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
It seems that the LocationPolicy creation is not implemented but I'm not sure. Do you know what I should do to create a Location for a sensor ?
If you need more details please ask.
Thank you for your help.
Regards.
Clement
|
|
|
Powered by
FUDForum. Page generated in 0.03442 seconds