1
votes

I'm trying to understand how data flows between the Orion Context-Broker and an IoT Agent. For this the first thing to understand is the initial registration request. I haven't found any example describing this. Afterwards I wanna send command throught the Context-Broker to a device (or IoT Agent in the beginning).

Can someone provide concrete examples for these use cases?

1

1 Answers

1
votes

The full NGSI-v2 data flow is described in the IoT Agent documentation a couple of practical examples can be found in the Step-by-Step Tutorials

The equivalent for NGSI-LD can be found here

A full example of an NGSI-v2 actuation can be found here. The action on the broker looks something like this:

curl -iX PATCH \
  'http://localhost:1026/v2/entities/urn:ngsi-ld:Door:001/attrs' \
  -H 'Content-Type: application/json' \
  -H 'fiware-service: openiot' \
  -H 'fiware-servicepath: /' \
  -d '{
  "open": {
      "type" : "command",
      "value" : ""
  }
}'