Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Location creation(LocationPolicy resource type not implemented)
Location creation [message #1770262] Wed, 09 August 2017 13:26
Clement Courtais is currently offline Clement CourtaisFriend
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
Previous Topic:OM2M performance for thousands of resources
Next Topic:An easy way to switch DB
Goto Forum:
  


Current Time: Sun Sep 23 20:05:57 GMT 2018

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

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

Back to the top