You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/iot-agent-json.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -497,7 +497,16 @@ curl -iX POST \
497
497
498
498
In the request we are associating the device `motion001` with the URN `urn:ngsi-ld:Motion:001` and mapping the device
499
499
reading `c` with the context attribute `count` (which is defined as an `Integer`) A `refStore` is defined as a
500
-
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`
500
+
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`.
501
+
502
+
> Static attributes are useful as additional data on an entity to enable querying using the `q` parameter. For example the Smart Data Models [Device](https://github.com/smart-data-models/dataModel.Device/blob/master/Device/doc/spec.md) model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
503
+
>
504
+
> - _Which **Actuators** currently have a low `batteryLevel`?_
505
+
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
506
+
>
507
+
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or `serialNumber` for each device should the entity ID be too inflexible for queries.
508
+
>
509
+
> Additional devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
501
510
502
511
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
Copy file name to clipboardExpand all lines: docs/iot-agent.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -483,7 +483,16 @@ curl -iX POST \
483
483
484
484
In the request we are associating the device `motion001` with the URN `urn:ngsi-ld:Motion:001` and mapping the device
485
485
reading `c` with the context attribute `count` (which is defined as an `Integer`) A `refStore` is defined as a
486
-
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`
486
+
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`.
487
+
488
+
> Static attributes are useful as additional data on an entity to enable querying using the `q` parameter. For example the Smart Data Models [Device](https://github.com/smart-data-models/dataModel.Device/blob/master/Device/doc/spec.md) model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
489
+
>
490
+
> - _Which **Actuators** currently have a low `batteryLevel`?_
491
+
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
492
+
>
493
+
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or `serialNumber` for each device should the entity ID be too inflexible for queries.
494
+
>
495
+
> Additionally devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
487
496
488
497
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
0 commit comments