@@ -10,7 +10,7 @@ printf "⏳ Provisioning IoT devices "
1010
1111
1212#
13- # Create a service groups for all UltraLight IoT devices
13+ # Create a service groups for all JSON IoT devices
1414#
1515
1616curl -s -o /dev/null -X POST \
@@ -24,8 +24,8 @@ curl -s -o /dev/null -X POST \
2424 "apikey": "1068318794",
2525 "cbroker": "' " http://orion:$ORION_PORT " ' ",
2626 "entity_type": "Motion",
27- "resource": "/iot/d ",
28- "protocol": "PDI- IoTA-UltraLight ",
27+ "resource": "/iot/json ",
28+ "protocol": "IoTA-JSON ",
2929 "transport": "HTTP",
3030 "timezone": "Europe/Berlin",
3131 "attributes": [
@@ -35,16 +35,16 @@ curl -s -o /dev/null -X POST \
3535 {"name": "category", "type":"Text", "value": ["sensor"]},
3636 {"name": "controlledProperty", "type": "Text", "value": "motion"},
3737 {"name": "function", "type": "Text", "value":["sensing"]},
38- {"name": "supportedProtocol", "type": "Text", "value": ["ul20 "]},
38+ {"name": "supportedProtocol", "type": "Text", "value": ["json "]},
3939 {"name": "supportedUnits", "type": "Text", "value": "C62"}
4040 ]
4141 },
4242 {
4343 "apikey": "3020035",
4444 "cbroker": "' " http://orion:$ORION_PORT " ' ",
4545 "entity_type": "Bell",
46- "resource": "/iot/d ",
47- "protocol": "PDI- IoTA-UltraLight ",
46+ "resource": "/iot/json ",
47+ "protocol": "IoTA-JSON ",
4848 "transport": "HTTP",
4949 "timezone": "Europe/Berlin",
5050 "commands": [
@@ -57,15 +57,15 @@ curl -s -o /dev/null -X POST \
5757 {"name": "category", "type":"Text", "value": ["actuator"]},
5858 {"name": "controlledProperty", "type": "Text", "value": "noiseLevel"},
5959 {"name": "function", "type": "Text", "value":["onOff"]},
60- {"name": "supportedProtocol", "type": "Text", "value": ["ul20 "]}
60+ {"name": "supportedProtocol", "type": "Text", "value": ["json "]}
6161 ]
6262 },
6363 {
6464 "apikey": "3314136",
6565 "cbroker": "' " http://orion:$ORION_PORT " ' ",
6666 "entity_type": "Lamp",
67- "resource": "/iot/d ",
68- "protocol": "PDI- IoTA-UltraLight ",
67+ "resource": "/iot/json ",
68+ "protocol": "IoTA-JSON ",
6969 "transport": "HTTP",
7070 "timezone": "Europe/Berlin",
7171 "commands": [
@@ -82,16 +82,16 @@ curl -s -o /dev/null -X POST \
8282 {"name": "category", "type":"Text", "value": ["actuator","sensor"]},
8383 {"name": "controlledProperty", "type": "Text", "value": "light"},
8484 {"name": "function", "type": "Text", "value":["onOff", "sensing"]},
85- {"name": "supportedProtocol", "type": "Text", "value": ["ul20 "]},
85+ {"name": "supportedProtocol", "type": "Text", "value": ["json "]},
8686 {"name": "supportedUnits", "type": "Text", "value": "CDL"}
8787 ]
8888 },
8989 {
9090 "apikey": "3089326",
9191 "cbroker": "' " http://orion:$ORION_PORT " ' ",
9292 "entity_type": "Door",
93- "resource": "/iot/d ",
94- "protocol": "PDI- IoTA-UltraLight ",
93+ "resource": "/iot/json ",
94+ "protocol": "IoTA-JSON ",
9595 "transport": "HTTP",
9696 "timezone": "Europe/Berlin",
9797 "commands": [
@@ -107,7 +107,7 @@ curl -s -o /dev/null -X POST \
107107 {"name": "category", "type":"Text", "value": ["actuator", "sensor"]},
108108 {"name": "controlledProperty", "type": "Text", "value": "state"},
109109 {"name": "function", "type": "Text", "value":["openClose", "eventNotification"]},
110- {"name": "supportedProtocol", "type": "Text", "value": ["ul20 "]}
110+ {"name": "supportedProtocol", "type": "Text", "value": ["json "]}
111111 ]
112112 }
113113 ]
@@ -119,7 +119,7 @@ curl -s -o /dev/null -X POST \
119119#
120120
121121curl -s -o /dev/null -X POST \
122- " http://iot-agent:$IOTA_NORTH_PORT /iot/devices " \
122+ " http://iot-agent:$IOTA_NORTH_PORT /iot/jsonevices " \
123123 -H ' Content-Type: application/json' \
124124 -H ' fiware-service: openiot' \
125125 -H ' fiware-servicepath: /' \
@@ -149,7 +149,7 @@ curl -s -o /dev/null -X POST \
149149 "entity_name": "Door:001",
150150 "entity_type": "Door",
151151 "apikey": "3089326",
152- "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/door001 " ' ",
152+ "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/jsonoor001 " ' ",
153153 "static_attributes": [
154154 {"name": "refStore", "type": "Relationship","value": "urn:ngsi-ld:Store:001"}
155155 ]
@@ -180,7 +180,7 @@ curl -s -o /dev/null -X POST \
180180#
181181
182182curl -s -o /dev/null -X POST \
183- " http://iot-agent:$IOTA_NORTH_PORT /iot/devices " \
183+ " http://iot-agent:$IOTA_NORTH_PORT /iot/jsonevices " \
184184 -H ' Content-Type: application/json' \
185185 -H ' fiware-service: openiot' \
186186 -H ' fiware-servicepath: /' \
@@ -210,7 +210,7 @@ curl -s -o /dev/null -X POST \
210210 "entity_name": "Door:002",
211211 "entity_type": "Door",
212212 "apikey": "3089326",
213- "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/door002 " ' ",
213+ "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/jsonoor002 " ' ",
214214 "static_attributes": [
215215 {"name": "refStore", "type": "Relationship","value": "urn:ngsi-ld:Store:002"}
216216 ]
@@ -244,7 +244,7 @@ curl -s -o /dev/null -X POST \
244244#
245245
246246curl -s -o /dev/null -X POST \
247- " http://iot-agent:$IOTA_NORTH_PORT /iot/devices " \
247+ " http://iot-agent:$IOTA_NORTH_PORT /iot/jsonevices " \
248248 -H ' Content-Type: application/json' \
249249 -H ' fiware-service: openiot' \
250250 -H ' fiware-servicepath: /' \
@@ -274,7 +274,7 @@ curl -s -o /dev/null -X POST \
274274 "entity_name": "Door:003",
275275 "entity_type": "Door",
276276 "apikey": "3089326",
277- "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/door003 " ' ",
277+ "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/jsonoor003 " ' ",
278278 "static_attributes": [
279279 {"name": "refStore", "type": "Relationship","value": "urn:ngsi-ld:Store:003"}
280280 ]
@@ -307,7 +307,7 @@ curl -s -o /dev/null -X POST \
307307#
308308
309309curl -s -o /dev/null -X POST \
310- " http://iot-agent:$IOTA_NORTH_PORT /iot/devices " \
310+ " http://iot-agent:$IOTA_NORTH_PORT /iot/jsonevices " \
311311 -H ' Content-Type: application/json' \
312312 -H ' fiware-service: openiot' \
313313 -H ' fiware-servicepath: /' \
@@ -337,7 +337,7 @@ curl -s -o /dev/null -X POST \
337337 "entity_name": "Door:004",
338338 "entity_type": "Door",
339339 "apikey": "3089326",
340- "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/door004 " ' ",
340+ "endpoint": "' " http://iot-sensors:$TUTORIAL_DUMMY_DEVICE_PORT /iot/jsonoor004 " ' ",
341341 "static_attributes": [
342342 {"name": "refStore", "type": "Relationship","value": "urn:ngsi-ld:Store:004"}
343343 ]
0 commit comments