Open elsni opened 3 years ago
Hi @elsni, it looks like the connection string printed by the program includes a DeviceId=odroidTemp
segment, which would indicate that is a device connection string, not a service connection string. Can you double check it?
I tried two different connection strings - I posted the output with the obviously incorrect device connection string, my bad.
This is the output with the correct connection string:
Using IoT Hub connection string [IoTHubSmartSafety.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=<key>]
IoTHubSmartSafetyConsumerGroupOdroid
Using event hub consumer group [IoTHubSmartSafetyConsumerGroupOdroid]
Listening on 3000.
Invalid IotHub connection string.
@anthonyvercolano can someone from your team investigate?
@drwill-ms I'll investigate.
I followed exactly the commands.
az iot hub show-connection-string --hub-name IoTHubSmartSafety --policy-name service
showsI replaced the actual key string with
<key>
. The connection string does not seem to be working.npm start
outputs
Node Version: v12.14.1