... | ... | @@ -4,7 +4,7 @@ Basically it covers 3 things: |
|
|
1. How we can use `Device data model` for IoT devices in pilots.
|
|
|
2. How to push `real-time` Device data to IoT Platform.
|
|
|
3. How to push `locally collected` (e.g. scada or data loggers) Device data to IoT Platform.
|
|
|
|
|
|
4. How to push all `locally collected` as a batch operation
|
|
|
|
|
|
Before starting to describe Device data model, you should ask yourself:
|
|
|
|
... | ... | @@ -262,6 +262,7 @@ The date when the measurment was taken needs to be formatted as: |
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
NOTE WELL: **All fields of the data model need to include this metadata, else, the current time will be used.**
|
|
|
|
|
|
# 4. How to push all `locally collected` as a batch operation
|
... | ... | @@ -351,10 +352,13 @@ curl --location --request POST 'http://5.53.108.182:8668/v2/notify' \ |
|
|
Getting all historical values of the Device
|
|
|
---------------------------------------------
|
|
|
|
|
|
You can get all historical attributes with:
|
|
|
|
|
|
```bash
|
|
|
curl --location --request GET 'http://5.53.108.182:8668/v2/entities/urn:ngsi-ld:Device:Device-test/attrs/value' \
|
|
|
--header 'Fiware-Service: carouge' \
|
|
|
--header 'Fiware-ServicePath: /'
|
|
|
```
|
|
|
|
|
|
This returns:
|
|
|
|
... | ... | |