... | ... | @@ -131,7 +131,13 @@ curl --location --request PATCH 'http://5.53.108.182:1026/v2/entities/urn:ngsi-l |
|
|
}
|
|
|
}'
|
|
|
|
|
|
|
|
|
If you are updating a single attribute then can it becomes even simpler by pointing the `/value` at the URL, e.g. for Carouge pilot
|
|
|
```bash
|
|
|
curl --location --request PUT \
|
|
|
"http://$ORION_HOST:1026/v2/entities/urn:ngsi-ld:FlowerBed:FlowerBed-1/attrs/soilMoisture/value"\
|
|
|
--header "Fiware-Service: carouge" \
|
|
|
--header "Content-Type: text/plain" \
|
|
|
-d $(( RANDOM % 10 ))
|
|
|
```
|
|
|
|
|
|
go test on your own running the following scripts:
|
... | ... | |