1

I'm trying to make an UWP app for receiving messages from Azure IoT hub, and I found some example code that use Azure sb lite, but problem is in these lines of code:

var factory = MessagingFactory.CreateFromConnectionString(Config.ConnectionStringAzureSbLite);
var client = factory.CreateEventHubClient(Config.EventHubCompatibleName);

Where can I find out what is my ConnectionStringAzureSbLite and what is my EventHubCompatibleName?

Tim Wieman
  • 170
  • 6
OverClock
  • 21
  • 4

1 Answers1

0

You can get these from the Azure portal. Look at the settings for your IoT Hub in the "Messaging" settings. See the section "How to read from Event Hubs-compatible endpoints" here: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-devguide/

Tim Wieman
  • 170
  • 6