How to connect a sensor node to om2m using http? [message #1776281] |
Tue, 14 November 2017 18:26  |
Eclipse User |
|
|
|
Hi,
I have om2m installed on my laptop and the IN and MN are setup on it as well.
What i have been struggling for the past weeks is how to connect sensor node (weather it be a pi or arduino) to my MN and IN using http? I have one sensor (ultrasonic sensor) setup on my raspberry pi but i dont know how to send http communication to om2m?
Can anyone guide me on it?
Best Regards,
Umar Farooq
|
|
|
|
|
Re: How to connect a sensor node to om2m using http? [message #1776682 is a reply to message #1776651] |
Mon, 20 November 2017 05:49  |
Eclipse User |
|
|
|
Glad to hear it helped you! :)
Well, as far as I know, I think when you have reached this limit, the oldest data is automatically deleted and the new data can be registered in OM2M. Otherwise, you can delete the data you don't want anymore by yourself. You just have to execute a DELETE HTTP request on this resource.
e.g.:
URL http://127.0.0.1:8080/~/mn-cse/mn-name/MY_SENSOR/DATA/cin_12345
Method DELETE
Header X-M2M-Origin : admin:admin
This request should delete the Content Instance : cin_12345 of the device MY_SENSOR registered on mn-cse. So you can run this kind of request when you need to.
Regards,
Dorian Kurzaj
[Updated on: Mon, 20 November 2017 05:55] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07210 seconds