lcarli / NodeRedIoTHub

Fork from origin plus changes
Apache License 2.0
14 stars 24 forks source link

Connection String Error #5

Closed retom closed 6 years ago

retom commented 7 years ago

Hi getting this error: 5.3.2017, 12:16:49node: Azure IoT Hub msg : error "ArgumentError: The connection string is missing the property: DeviceId"

My String in the node is: HostName=XXXXXXXXX.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=XXXXXXXXX What shall i change?

Thank you! reto

rasavant-ms commented 6 years ago

Is this is the string in your payload? Your payload should look like this: { "deviceId": "device146", "key": "XXXXXXX", "protocol": "http", "data": "{tem: 25, wind: 20}" }

Let me know if this does not work.

rasavant-ms commented 6 years ago

Closing out this issue. Feel free to reopen if you find any issues with the newer version of this package. Use this command to update: update-nodejs-and-nodered