amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
53 stars 57 forks source link

Hi I'm providing the connection string for device but still i'm getting an error as "Device ID is required" and FYR my connection string is as follows "HostName=Hostname.azure-devices.net;DeviceId=simDevice;SharedAccessKey=accesskey" #15

Closed vasanthkukumar closed 4 years ago

amenzhinsky commented 4 years ago

@vasanthkukumar can you share code or command you're trying to run?

ejdoh1 commented 4 years ago

my mistake was that I was not setting IOTHUB_DEVICE_CONNECTION_STRING environment variable.. the code uses os.Getenv