flownexus-lwm2m / flownexus

IoT server with LwM2M support
https://flownexus-lwm2m.github.io/flownexus
Apache License 2.0
3 stars 2 forks source link

django: implement lwm2m SEND operation #74

Closed jonas-rem closed 2 months ago

jonas-rem commented 2 months ago

TODO:

An Endpoint can send multiple resources with the SEND request at once. In case multiple endpoints are send, django summarizes all of them (regardless of the object) and links them to a new event. The name of the event is the object of the first resource. In the example payload below, the event name would be "3303".

Example SEND Operation:

{
  "ep" : "urn:imei:100000000000000",
  "val" : {
    "empty" : false,
    "timestamps" : [ null ],
    "nodes" : {
      "/3303/0/5700" : {
        "kind" : "singleResource",
        "id" : 5700,
        "type" : "FLOAT",
        "value" : "21.13306311567618"
      },
      "/3304/0/5700" : {
        "kind" : "singleResource",
        "id" : 5700,
        "type" : "FLOAT",
        "value" : "54.92426540118741"
      }
    }
  }
}