@@ -207,7 +207,7 @@ Proxy** インスタンスを追加することで、既存の在庫管理、お
207207プリケーションへのアクセスを保護し、** Keyrock** が使用する ** MySQL** データベー
208208スに事前入力されたデータを使用します
209209。[ Orion Context Broker] ( https://fiware-orion.readthedocs.io/en/latest/ ) ,
210- [ IoT Agent for UltraLight 2.0 ] ( https://fiware-iotagent-ul .readthedocs.io/en/latest/ ) ,
210+ [ IoT Agent for JSON ] ( https://fiware-iotagent-json .readthedocs.io/en/latest/ ) ,
211211[ Keyrock] ( https://fiware-idm.readthedocs.io/en/latest/ ) Generic Enabler の 4 つ
212212の FIWARE コンポーネントを使用し、[ Wilma] ( https://fiware-pep-proxy.rtfd.io/ )
213213** PEP Proxy** の 1 つまたは 2 つのインスタンスを追加して、どのインタフェースを保
@@ -227,10 +227,10 @@ Orion Context Broker と IoT Agent はオープンソースの
227227 [ Orion Context Broker] ( https://fiware-orion.readthedocs.io/en/latest/ ) は
228228 、[ NGSI-v2] ( https://fiware.github.io/specifications/OpenAPI/ngsiv2 ) を使用して
229229 リクエストを受信します
230- - [ IoT Agent for UltraLight 2.0 ] ( https://fiware-iotagent-ul .readthedocs.io/en/latest/ )
230+ - [ IoT Agent for JSON ] ( https://fiware-iotagent-json .readthedocs.io/en/latest/ )
231231 は、[ NGSI-v2] ( https://fiware.github.io/specifications/OpenAPI/ngsiv2 ) を使用し
232232 てサウスバウンド・リクエストを受信し、それをデバイスのために
233- [ UltraLight 2.0 ] ( https://fiware-iotagent-ul .readthedocs.io/en/latest/usermanual/index.html#user-programmers-manual )
233+ [ JSON ] ( https://fiware-iotagent-json .readthedocs.io/en/latest/usermanual/index.html#user-programmers-manual )
234234 に変換します。
235235- FIWARE [ Keyrock] ( https://fiware-idm.readthedocs.io/en/latest/ ) は、以下を含
236236 んだ、補完的な ID 管理システムを提供します :
@@ -254,7 +254,7 @@ Orion Context Broker と IoT Agent はオープンソースの
254254 - ユーザが製品を"購入"して在庫数を減らすことができます
255255 - 許可されたユーザを制限されたエリアに入れることができます
256256- HTTP を介して実行されている
257- [ UltraLight 2.0 ] ( https://fiware-iotagent-ul .readthedocs.io/en/latest/usermanual/index.html#user-programmers-manual )
257+ [ JSON ] ( https://fiware-iotagent-json .readthedocs.io/en/latest/usermanual/index.html#user-programmers-manual )
258258 プロトコルを使用す
259259 る[ ダミー IoT デバイス] ( https://github.com/FIWARE/tutorials.IoT-Sensors/tree/NGSI-v2 ) のセ
260260 ットとして機能する Web サーバ。特定のリソースへのアクセスが制限されています
@@ -1151,7 +1151,7 @@ async function buyItem(req, res) {
11511151
11521152` iot-agent-proxy ` コンテナは FIWARE ** Wilma** のインスタンスである、ポート
11531153` 7897 ` で待機し、` iot-agent ` のポート ` 7896 ` にトラフィックを転送するように設定
1154- され これは、Ultralight エージェントが、HTTP リクエストのために待機しているデフ
1154+ され これは、JSON エージェントが、HTTP リクエストのために待機しているデフ
11551155ォルトのポートです。
11561156
11571157``` yaml
@@ -1218,7 +1218,7 @@ iot-agent-proxy:
12181218# # IoT Agent サウス・ポート の保護 - アプリケーションの設定
12191219
12201220このチュートリアル・アプリケーションは、ダミー IoT センサのデータを提供する役割
1221- も果たします。IoT センサは、Ultralight 構文でコマンドと測定値を含む HTTP リクエ
1221+ も果たします。IoT センサは、JSON 構文でコマンドと測定値を含む HTTP リクエ
12221222ストを出しています。IoT センサのユーザ名とパスワードはすでに **Keyrock** に登録
12231223されていますが、プログラムごとに OAuth2 アクセス・トークンを取得し、**IoT
12241224Agent** の前にある 2 番目の **Wilma** PEP Proxy にリクエストします。
@@ -1254,7 +1254,7 @@ tutorial-app:
12541254 - "DUMMY_DEVICES_PASSWORD=test"
12551255` ` `
12561256
1257- ` tutorial` コンテナは、ダミー Ultralight センサをホストします。以前のすべてのチ
1257+ ` tutorial` コンテナは、ダミー JSON センサをホストします。以前のすべてのチ
12581258ュートリアルに示されているように、**IoT Agent** にポート `7896` で直接アクセスす
12591259るのではなく、すべてのトラフィックが、`iot-agent-proxy` の ポート `7897` に転送
12601260されます。関連する `tutorial` コンテナの設定のほとんどは、以前のチュートリアルで
@@ -1267,7 +1267,7 @@ tutorial-app:
12671267| IOTA_HTTP_PORT | `7896` | IoT Agent を保護する Wilma PEP Proxy がリスンしているポート |
12681268| DUMMY_DEVICES_PORT | `3001` | ダミー IoT デバイスがコマンドを受信するために使用するポート |
12691269| DUMMY_DEVICES_TRANSPORT | `HTTP` | ダミー IoT デバイスによって使用されるデフォルトのトランスポート |
1270- | DUMMY_DEVICES_API_KEY | `4jggokgpepnvsb2uv4s40d59ov` | UltraLight インタラクションに使用されるランダムなセキュリティキー - デバイスと IoT Agent 間のインタラクションの完全性を保証します |
1270+ | DUMMY_DEVICES_API_KEY | `4jggokgpepnvsb2uv4s40d59ov` | JSON インタラクションに使用されるランダムなセキュリティキー - デバイスと IoT Agent 間のインタラクションの完全性を保証します |
12711271| DUMMY_DEVICES_USER | `iot_sensor_00000000-0000-0000-0000-000000000000` | **Keyrock** のデバイスに割り当てられたユーザ名 |
12721272| DUMMY_DEVICES_PASSWORD | `test` | **Keyrock** のデバイスに割り当てられたパスワード |
12731273
@@ -1332,7 +1332,7 @@ curl -iX POST \
13321332この例では、デバイス `motion001` からの保護されたリクエストをシミュレートします
13331333。
13341334
1335- Ultralight IoT Agent の前にある PEP Proxy への POST リクエストは、事前にプロビジ
1335+ JSON IoT Agent の前にある PEP Proxy への POST リクエストは、事前にプロビジ
13361336ョニングされたリソース `iot/d` エンドポイントを識別し、デバイス `motion001` の測
13371337定値を渡します。`X-Auth-Token` ヘッダを追加すると、リクエスト元が Keyrock に登録
13381338されていると識別され、測定が IoT Agent 自体に正常に渡されます。
@@ -1341,7 +1341,7 @@ Ultralight IoT Agent の前にある PEP Proxy への POST リクエストは、
13411341
13421342` ` ` console
13431343curl -X POST \
1344- 'http://localhost:7897/iot/d ?k=1068318794&i=motion001' \
1344+ 'http://localhost:7897/iot/json ?k=1068318794&i=motion001' \
13451345 -H 'X-Auth-Token: {{X-Access-token}}' \
13461346 -H 'Content-Type: text/plain' \
13471347 -d 'c|1'
@@ -1409,7 +1409,7 @@ request(options, (error) => {
14091409iot-agent:
14101410 labels:
14111411 org.fiware: 'tutorial'
1412- image: quay.io/fiware/iotagent-ul :${ULTRALIGHT_VERSION }
1412+ image: quay.io/fiware/iotagent-json :${JSON_VERSION }
14131413 hostname: iot-agent
14141414 container_name: fiware-iot-agent
14151415 depends_on:
@@ -1431,7 +1431,7 @@ iot-agent:
14311431 - IOTA_AUTOCAST=true
14321432 - IOTA_MONGO_HOST=mongo-db
14331433 - IOTA_MONGO_PORT=27017
1434- - IOTA_MONGO_DB=iotagentul
1434+ - IOTA_MONGO_DB=iotagentjson
14351435 - IOTA_HTTP_PORT=7896
14361436 - IOTA_PROVIDER_URL=http://iot-agent:4041
14371437 - IOTA_AUTH_ENABLED=true
@@ -1514,15 +1514,15 @@ curl -X POST \
15141514 "apikey": "1068318794",
15151515 "cbroker": "http://orion:1026",
15161516 "entity_type": "Motion",
1517- "resource": "/iot/d "
1517+ "resource": "/iot/json "
15181518}
15191519` ` `
15201520
15211521# ### 1️⃣8️⃣ リクエスト:
15221522
15231523` ` ` console
15241524curl -iX PUT \
1525- 'http://localhost:4041/iot/services?resource=/iot/d &apikey=1068318794' \
1525+ 'http://localhost:4041/iot/services?resource=/iot/json &apikey=1068318794' \
15261526 -H 'Content-Type: application/json' \
15271527 -H 'fiware-service: openiot' \
15281528 -H 'fiware-servicepath: /' \
@@ -1544,7 +1544,7 @@ curl -iX PUT \
15441544
15451545` ` ` console
15461546curl -iX POST \
1547- 'http://localhost:4041/iot/devices ' \
1547+ 'http://localhost:4041/iot/jsonevices ' \
15481548 -H 'Content-Type: application/json' \
15491549 -H 'fiware-service: openiot' \
15501550 -H 'fiware-servicepath: /' \
0 commit comments