Skip to content

Commit

Permalink
Explicitly add apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jul 1, 2024
1 parent 40f5313 commit baeb172
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ STELLIO_TIMESCALE_POSTGIS=16-2.14.2-3.4
CURL_VERSION=8.4.0

# IoT Agent Ultralight Variables
ULTRALIGHT_VERSION=3.3.0-distroless
ULTRALIGHT_VERSION=3.4.0-distroless
IOTA_NORTH_PORT=4041
IOTA_SOUTH_PORT=7896

Expand Down
7 changes: 7 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "temperature001",
"entity_name": "urn:ngsi-ld:Device:temperature001",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"timezone": "Europe/Berlin",
"attributes": [
{
Expand Down Expand Up @@ -818,6 +819,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "water001",
"entity_name": "urn:ngsi-ld:Device:water001",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/water001",
Expand Down Expand Up @@ -928,6 +930,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "filling001",
"entity_name": "urn:ngsi-ld:Device:filling001",
"entity_type": "FillingLevelSensor",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/filling001",
Expand Down Expand Up @@ -986,6 +989,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "tractor001",
"entity_name": "urn:ngsi-ld:Device:tractor001",
"entity_type": "Tractor",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/tractor001",
Expand Down Expand Up @@ -1347,6 +1351,7 @@ curl -iX POST 'http://localhost:4041/iot/devices' \
"device_id": "water002",
"entity_name": "urn:ngsi-ld:Device:water002",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/water002",
Expand Down Expand Up @@ -1398,6 +1403,7 @@ curl -X GET \
"service_path": "/",
"entity_name": "urn:ngsi-ld:Device:water002",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"endpoint": "http://iot-sensors:3001/iot/water002",
"transport": "HTTP",
"attributes": [],
Expand Down Expand Up @@ -1456,6 +1462,7 @@ curl -X GET \
"service_path": "/",
"entity_name": "urn:ngsi",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"endpoint": "http://iot-sensors:3001/iot/water002",
"transport": "HTTP",
"attributes": [],
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "temperature001",
"entity_name": "urn:ngsi-ld:Device:temperature001",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"timezone": "Europe/Berlin",
"attributes": [
{
Expand Down Expand Up @@ -803,6 +804,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "water001",
"entity_name": "urn:ngsi-ld:Device:water001",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/water001",
Expand Down Expand Up @@ -911,6 +913,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "filling001",
"entity_name": "urn:ngsi-ld:Device:filling001",
"entity_type": "FillingLevelSensor",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/filling001",
Expand Down Expand Up @@ -966,6 +969,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
"device_id": "tractor001",
"entity_name": "urn:ngsi-ld:Device:tractor001",
"entity_type": "Tractor",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/tractor001",
Expand Down Expand Up @@ -1300,6 +1304,7 @@ curl -iX POST 'http://localhost:4041/iot/devices' \
"device_id": "water002",
"entity_name": "urn:ngsi-ld:Device:water002",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"protocol": "PDI-IoTA-UltraLight",
"transport": "HTTP",
"endpoint": "http://iot-sensors:3001/iot/water002",
Expand Down Expand Up @@ -1348,6 +1353,7 @@ The response includes all the commands and attributes mappings associated with t
"service_path": "/",
"entity_name": "urn:ngsi-ld:Device:water002",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"endpoint": "http://iot-sensors:3001/iot/water002",
"transport": "HTTP",
"attributes": [],
Expand Down Expand Up @@ -1403,6 +1409,7 @@ The response includes all the commands and attributes mappings associated with a
"service_path": "/",
"entity_name": "urn:ngsi",
"entity_type": "Device",
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
"endpoint": "http://iot-sensors:3001/iot/water002",
"transport": "HTTP",
"attributes": [],
Expand Down

0 comments on commit baeb172

Please sign in to comment.