@@ -147,7 +147,7 @@ curl http://localhost:4001/iot/devices \
147
147
-d @add_device.json
148
148
```
149
149
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
151
151
152
152
add_device.json sample payload contains several attributes even of different type. Some of them are missing on the OPC
153
153
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 \
164
164
165
165
You should obtain a JSON indicating that there is one device:
166
166
167
- [ aggiungere estratto corpo JSON]
168
-
169
167
#### Interlude
170
168
171
169
You can interact with the CarServer through the Agent in three different ways:
@@ -203,11 +201,11 @@ curl -X PUT \
203
201
' http://localhost:1026/v2/entities/age01_Car/attrs/Accelerate?type=Device' \
204
202
-H ' content-type: application/json' \
205
203
-H ' fiware-service: opcua_car' \
206
- -H ' fiware-servicepath: /demo'
204
+ -H ' fiware-servicepath: /demo' \
207
205
-d ' {
208
206
"value": [2],
209
207
"type": "command"
210
- }
208
+ }'
211
209
```
212
210
213
211
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:
225
223
226
224
``` bash
227
225
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 \
238
227
-H ' fiware-service: opcua_car' \
239
228
-H ' fiware-servicepath: /demo'
240
229
```
0 commit comments