Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Enabler:IoT Broker
Description
Created question in FIWARE Q/A platform on 27-06-2018 at 12:06
Please, ANSWER this question AT https://stackoverflow.com/questions/51060332/what-is-the-ngsi-v2-endpoint-for-mimicking-iot-agent-commands
Question:
What is the NGSI v2 endpoint for mimicking IoT Agent commands?
Description:
When testing commands Southbound, I am currently using the NGSI v1 endpoint as shown:
curl -X POST \
'http://iot-agent/v1/updateContext' \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-d '{
"contextElements": [
{
"type": "Bell",
"isPattern": "false",
"id": "urn:ngsi-ld:Bell:001",
"attributes": [
]
}
],
"updateAction": "UPDATE"
}'
As you can see this is an NGSI v1 request. According to this presentation on Slideshare (slide 16) use of NGSI v1 is discouraged - I would like to replace this with an NGSI v2 request. I believe that all IoT Agents are now NGSI v2 capable, however I have been unable to find the details of the replacement NGSI v2 request within the documentation.
So the question is what is the equivalent cUrl command to mimic a command from Orion using NGSI v2?
2018-06-27 15:05|CREATED monitor | # answers= 1, accepted answer= False