IoTHub Connection Strings

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives


IoTHub uses in general (with some iot specific improvements) messaging technology behind Azure Service Bus. That means that connection strings of IoTHub are same or similar as in a case of service bus.

For example, if you open up azure management portal, you can grab the connection string:

image

However these connection strings are not device specific connection strings. IoTHub connection string can optionally contain a DeviceId token in the string itself. Following snippet shows connection string with device id:

HostName=myhub.azure-devices.net;DeviceId=D001;SharedAccessKey=***=

When copying the string from portal, you can append device id to connection string. Another (easier) option is to obtain the connection string from device explorer as shown at the following picture.

image


Posted Feb 16 2016, 07:07 AM by Damir Dobric
developers.de is a .Net Community Blog powered by daenet GmbH.