Skip to content

Commit fd3735a

Browse files
committed
Adding more example queries.
1 parent 11bcde3 commit fd3735a

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

docs/iot-agent-json.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,12 +504,21 @@ reading `c` with the context attribute `count` (which is defined as an `Integer`
504504
> model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
505505
>
506506
> - _Which **Actuators** currently have a low `batteryLevel`?_
507+
>
508+
> `/v2/entities?q=category=="actuator";batteryLevel<0.1`
509+
>
507510
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
508511
>
512+
> `/v2/entities?q=controlledProperty=="fillingLevel";dateInstalled<"2020-01-25T00:00:00.000Z"`
513+
>
509514
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or
510515
> `serialNumber` for each device should the entity ID be too inflexible for queries.
511516
>
517+
> `/v2/entities?q=serialNumber=="XS403001-002"`
518+
>
512519
> Additionally devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
520+
>
521+
> `/v2/entities?georel=near;maxDistance:1500&geometry=point&coords=52.5162,13.3777`
513522

514523
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
515524
following request

docs/iot-agent.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,21 @@ reading `c` with the context attribute `count` (which is defined as an `Integer`
490490
> model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
491491
>
492492
> - _Which **Actuators** currently have a low `batteryLevel`?_
493+
>
494+
> `/v2/entities?q=category=="actuator";batteryLevel<0.1`
495+
>
493496
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
494497
>
498+
> `/v2/entities?q=controlledProperty=="fillingLevel";dateInstalled<"2020-01-25T00:00:00.000Z"`
499+
>
495500
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or
496501
> `serialNumber` for each device should the entity ID be too inflexible for queries.
497502
>
503+
> `/v2/entities?q=serialNumber=="XS403001-002"`
504+
>
498505
> Additionally devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
506+
>
507+
> `/v2/entities?georel=near;maxDistance:1500&geometry=point&coords=52.5162,13.3777`
499508

500509
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
501510
following request

0 commit comments

Comments
 (0)