Skip to content

Commit f2d93b1

Browse files
committed
Updates to use and reflect 3.14.0 IoT Agent for JSON
1 parent d4cb114 commit f2d93b1

6 files changed

Lines changed: 1750 additions & 1570 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ STELLIO_TIMESCALE_POSTGIS=16-2.16.0-3.3
2323
CURL_VERSION=8.4.0
2424

2525
# IoT Agent JSON Variables
26-
JSON_VERSION=3.6.0-distroless
26+
JSON_VERSION=3.14.0-distroless
2727
IOTA_NORTH_PORT=4041
2828
IOTA_SOUTH_PORT=7896
2929

NGSI-LD IoT Agent JSON.postman_collection.json

Lines changed: 1542 additions & 1493 deletions
Large diffs are not rendered by default.

README.ja.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@ iot-agent:
308308
- IOTA_TIMESTAMP=true
309309
- IOTA_CB_NGSI_VERSION=ld
310310
- IOTA_AUTOCAST=true
311-
- IOTA_MONGO_HOST=mongo-db
312-
- IOTA_MONGO_PORT=27017
313-
- IOTA_MONGO_DB=iotagentjson
311+
- IOTA_MONGO_URI=mongodb://mongo-db:${MONGO_DB_PORT}/iotagentjson
314312
- IOTA_HTTP_PORT=7896
315313
- IOTA_PROVIDER_URL=http://iot-agent:4041
316314
- IOTA_DEFAULT_RESOURCE=/iot/json
@@ -338,9 +336,7 @@ iot-agent:
338336
| IOTA_TIMESTAMP | `true` | 接続されたデバイスから受信した各測定値でタイムスタンプ情報を提供するかどうか |
339337
| IOTA_CB_NGSI_VERSION | `LD` | アクティブな属性の更新を送信するときに使用する NGSI-LD を供給するかどうか |
340338
| IOTA_AUTOCAST | `true` | JSON number の値が文字列ではなく数値として読み取られるようにする |
341-
| IOTA_MONGO_HOST | `context-db` | mongoDB のホスト名 - デバイス情報を保持するために使用されます |
342-
| IOTA_MONGO_PORT | `27017` | mongoDB がリッスンしているポート |
343-
| IOTA_MONGO_DB | `iotagentul` | mongoDB で使用されるデータベースの名前 |
339+
| IOTA_MONGO_URI | `mongodb://mongo-db:27017/iotagentjson` | The URI of mongoDB - used for holding device information |
344340
| IOTA_HTTP_PORT | `7896` | IoT Agent が HTTP 経由で IoT デバイス トラフィックをリッスンするポート |
345341
| IOTA_PROVIDER_URL | `http://iot-agent:4041` | コマンドの登録時に Context Broker に渡される URL。Context Broker がデバイスにコマンドを発行するときにフォワーディング URL の場所として使用されます |
346342
| IOTA_JSON_LD_CONTEXT | `http://context/user-context.jsonld` | デバイス データ モデルの定義に使用される `@context` ファイルの場所 |
@@ -822,7 +818,7 @@ curl -L -X POST \
822818
"entity_name": "urn:ngsi-ld:Device:water001",
823819
"entity_type": "Device",
824820
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
825-
"protocol": "PDI-IoTA-JSON",
821+
"protocol": "IoTA-JSON",
826822
"transport": "HTTP",
827823
"endpoint": "http://iot-sensors:3001/iot/water001",
828824
"commands": [
@@ -935,7 +931,7 @@ curl -L -X POST \
935931
"entity_name": "urn:ngsi-ld:Device:filling001",
936932
"entity_type": "FillingLevelSensor",
937933
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
938-
"protocol": "PDI-IoTA-JSON",
934+
"protocol": "IoTA-JSON",
939935
"transport": "HTTP",
940936
"endpoint": "http://iot-sensors:3001/iot/filling001",
941937
"commands": [
@@ -994,7 +990,7 @@ curl -L -X POST \
994990
"entity_name": "urn:ngsi-ld:Device:tractor001",
995991
"entity_type": "Tractor",
996992
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
997-
"protocol": "PDI-IoTA-JSON",
993+
"protocol": "IoTA-JSON",
998994
"transport": "HTTP",
999995
"endpoint": "http://iot-sensors:3001/iot/tractor001",
1000996
"commands": [
@@ -1358,7 +1354,7 @@ curl -iX POST 'http://localhost:4041/iot/devices' \
13581354
"entity_name": "urn:ngsi-ld:Device:water002",
13591355
"entity_type": "Device",
13601356
"apikey": "4jggokgpepnvsb2uv4s40d59ov",
1361-
"protocol": "PDI-IoTA-JSON",
1357+
"protocol": "IoTA-JSON",
13621358
"transport": "HTTP",
13631359
"endpoint": "http://iot-sensors:3001/iot/water002",
13641360
"commands": [
@@ -1433,7 +1429,7 @@ curl -X GET \
14331429
"value": "urn:ngsi-ld:Building:barn002"
14341430
}
14351431
],
1436-
"protocol": "PDI-IoTA-JSON"
1432+
"protocol": "IoTA-JSON"
14371433
}
14381434
```
14391435

@@ -1486,7 +1482,7 @@ curl -X GET \
14861482
"value": "urn:ngsi-ld:Store:002"
14871483
}
14881484
],
1489-
"protocol": "PDI-IoTA-JSON"
1485+
"protocol": "IoTA-JSON"
14901486
},
14911487
etc...
14921488
]

0 commit comments

Comments
 (0)