Skip to content

Commit

Permalink
Update IoT Agent Provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Sep 21, 2023
1 parent 4006616 commit 12854e2
Showing 1 changed file with 97 additions and 0 deletions.
97 changes: 97 additions & 0 deletions import-data
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,101 @@ curl -s -o /dev/null -X POST \
]
}'

#
# Ensure that actuators are minimally provisioned.
#
curl -X POST \
'http://orion:1026/v2/op/update' \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-d '{
"actionType":"APPEND",
"entities":[
{
"id": "Bell:001",
"type": "Bell",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
}
},
{
"id": "Door:001",
"type": "Door",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
}
},
{
"id": "Lamp:001",
"type": "Lamp",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
}
},
{
"id": "Bell:002",
"type": "Bell",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
}
},
{
"id": "Door:002",
"type": "Door",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
}
},
{
"id": "Lamp:002",
"type": "Lamp",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
}
},
{
"id": "Bell:003",
"type": "Bell",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
}
},
{
"id": "Door:003",
"type": "Door",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
}
},
{
"id": "Lamp:003",
"type": "Lamp",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
}
},
{
"id": "Bell:004",
"type": "Bell",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
}
},
{
"id": "Door:004",
"type": "Door",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
}
},
{
"id": "Lamp:004",
"type": "Lamp",
"refStore": {
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
}
}
]
}'

echo -e " \033[1;32mdone\033[0m"

0 comments on commit 12854e2

Please sign in to comment.