Skip to content

Commit 8d3425d

Browse files
committed
Documentation updated
1 parent 8a91186 commit 8d3425d

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

docs/opc_ua_agent_tutorial.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ curl http://localhost:4001/iot/devices \
147147
-d @add_device.json
148148
```
149149

150-
Where add_device.json is the one you find inside iotagent-opcua/API_Server_Tests folder
150+
Where **add_device.json** is the one you find inside **iotagent-opcua/testCommands** folder
151151

152152
add_device.json sample payload contains several attributes even of different type. Some of them are missing on the OPC
153153
UA Server side but have been included to prove that the Agent is able to manage such situations.
@@ -164,8 +164,6 @@ curl http://localhost:4001/iot/devices \
164164

165165
You should obtain a JSON indicating that there is one device:
166166

167-
[aggiungere estratto corpo JSON]
168-
169167
#### Interlude
170168

171169
You can interact with the CarServer through the Agent in three different ways:
@@ -203,11 +201,11 @@ curl -X PUT \
203201
'http://localhost:1026/v2/entities/age01_Car/attrs/Accelerate?type=Device' \
204202
-H 'content-type: application/json' \
205203
-H 'fiware-service: opcua_car' \
206-
-H 'fiware-servicepath: /demo'
204+
-H 'fiware-servicepath: /demo' \
207205
-d '{
208206
"value": [2],
209207
"type": "command"
210-
}
208+
}'
211209
```
212210

213211
To proof that the method Accelerate is arrived to the device, It is sufficient to evaluate the speed attribute (must be
@@ -225,16 +223,7 @@ proof:
225223

226224
```bash
227225
curl -X GET \
228-
http://orion:1026/v2/entities \
229-
-H 'fiware-service: opcua_car' \
230-
-H 'fiware-servicepath: /demo'
231-
```
232-
233-
Every value change can be seen into docker-compose logs and performing requests to Orion as:
234-
235-
```bash
236-
curl -X GET \
237-
http://orion:1026/v2/entities \
226+
http://localhost:1026/v2/entities \
238227
-H 'fiware-service: opcua_car' \
239228
-H 'fiware-servicepath: /demo'
240229
```

0 commit comments

Comments
 (0)