Skip to content

Commit 2c8a6c9

Browse files
committed
Update IoT Agent Provisioning
1 parent b7f6cf3 commit 2c8a6c9

File tree

2 files changed

+98
-1
lines changed

2 files changed

+98
-1
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TUTORIAL_DUMMY_DEVICE_PORT=3001
1515
IOTA_SOUTH_PORT=7896
1616

1717
# IoT Agent Ultralight Variables
18-
ULTRALIGHT_VERSION=2.3.0-distroless
18+
ULTRALIGHT_VERSION=2.4.0-distroless
1919
IOTA_NORTH_PORT=4041
2020

2121
# Keyrock variables

import-data

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,101 @@ curl -s -o /dev/null -X POST \
424424
]
425425
}'
426426

427+
#
428+
# Ensure that actuators are minimally provisioned.
429+
#
430+
curl -X POST \
431+
'http://orion:1026/v2/op/update' \
432+
-H 'Content-Type: application/json' \
433+
-H 'fiware-service: openiot' \
434+
-d '{
435+
"actionType":"APPEND",
436+
"entities":[
437+
{
438+
"id": "Bell:001",
439+
"type": "Bell",
440+
"refStore": {
441+
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
442+
}
443+
},
444+
{
445+
"id": "Door:001",
446+
"type": "Door",
447+
"refStore": {
448+
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
449+
}
450+
},
451+
{
452+
"id": "Lamp:001",
453+
"type": "Lamp",
454+
"refStore": {
455+
"type": "Relationship","value": "urn:ngsi-ld:Store:001"
456+
}
457+
},
458+
{
459+
"id": "Bell:002",
460+
"type": "Bell",
461+
"refStore": {
462+
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
463+
}
464+
},
465+
{
466+
"id": "Door:002",
467+
"type": "Door",
468+
"refStore": {
469+
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
470+
}
471+
},
472+
{
473+
"id": "Lamp:002",
474+
"type": "Lamp",
475+
"refStore": {
476+
"type": "Relationship","value": "urn:ngsi-ld:Store:002"
477+
}
478+
},
479+
{
480+
"id": "Bell:003",
481+
"type": "Bell",
482+
"refStore": {
483+
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
484+
}
485+
},
486+
{
487+
"id": "Door:003",
488+
"type": "Door",
489+
"refStore": {
490+
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
491+
}
492+
},
493+
{
494+
"id": "Lamp:003",
495+
"type": "Lamp",
496+
"refStore": {
497+
"type": "Relationship","value": "urn:ngsi-ld:Store:003"
498+
}
499+
},
500+
{
501+
"id": "Bell:004",
502+
"type": "Bell",
503+
"refStore": {
504+
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
505+
}
506+
},
507+
{
508+
"id": "Door:004",
509+
"type": "Door",
510+
"refStore": {
511+
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
512+
}
513+
},
514+
{
515+
"id": "Lamp:004",
516+
"type": "Lamp",
517+
"refStore": {
518+
"type": "Relationship","value": "urn:ngsi-ld:Store:004"
519+
}
520+
}
521+
]
522+
}'
523+
427524
echo -e " \033[1;32mdone\033[0m"

0 commit comments

Comments
 (0)