eclipse-leda / leda-utils

Convenience scripts for Eclipse Leda quickstart tutorials
https://eclipse-leda.github.io/leda/
Apache License 2.0
5 stars 5 forks source link

Update cloudconnector path in sdv-provision #26

Closed vasilvas99 closed 1 year ago

vasilvas99 commented 1 year ago

Account for the new concept of manifests and manifests_dev. After changing the path and running sdv-provision, the manifest was successfully updated:

    "env": [
      "CERT_FILE=/device.crt",
      "KEY_FILE=/device.key",
      "LOCAL_ADDRESS=tcp://mosquitto:1883",
      "LOG_FILE=",
      "LOG_LEVEL=INFO",
      "CA_CERT_PATH=/app/iothub.crt",
      "MESSAGE_MAPPER_CONFIG=/app/message-mapper-config.json",
      "ALLOWED_LOCAL_TOPICS_LIST=cloudConnector/#",
      "CONNECTION_STRING=HostName=<conn-string>;DeviceId=<dev-id>"
    ],

And the cloudconnector is able to connect to the azure iot hub:

...
 2023/02/20 14:39:51.663898  [azure-connector]  INFO   Connection status {"connected":true,"timestamp":1676903991}                                             
...