Engineering-Research-and-Development / iotagent-opcua

IoT Agent for OPC UA protocol
https://iotagent-opcua.rtfd.io/
GNU Affero General Public License v3.0
41 stars 21 forks source link

Actuators #120

Closed fdrobnic closed 10 months ago

fdrobnic commented 11 months ago

Reagrding the problem discussed in the issue #117, and the fact that the IoT Agent for Ultralight does provide a working example of actuator control, would it be possible to implement a similar solution as a workaround that would make some demonstrations possible, at least? The solution might have limitations (be less scalable, ...), but anyway. It would help us a lot.

walterwootz commented 10 months ago

Hello @fdrobnic After some tests, you should be able to run actuation (commands) with the following configuration:

This is an example curl to run a command through Orion LD:

curl --location --request PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:age01_Car/attrs/Accelerate' \
--header 'fiware-service: opcua_car' \
--header 'Content-Type: application/json' \
--data-raw '{
    "value": "20"
}'

Everything should work correctly.

fdrobnic commented 10 months ago

Thank you very much. It works as expected.