Azure IoT Hub - MQTT Connection
Antwort
28.05.19 13:37

Hi, 

I am new to the XDK Comunity and I am no C guru, so please don´t shout at me :)

I try to get the XDK110 connected to the Azure IoT Hub but I am not able to find a way to define the correct connetion settings.

I read already the existing threads about Azure and MQTT but was not able to follow everything.

 

Until now I was able to connect to a local Mosquitto MQTT Broker using the Example Code to provide Humidity, Pressure and Temperature from the XDC Device.

When I try to change the MQTT_Broker_Host_URL  I get an connection error, becuase I understand that I need to define the right key somewhere, but I don´t know what and where I need to change the connection logic to provide ne shared key.

 

Is there anyone that likes to help me step by step?

 

0 (0 Stimmen)
RE: Azure IoT Hub - MQTT Connection
Antwort
30.05.19 09:10 als Antwort auf Christoph Maryniok.

Hi Christoph,

We have never tried to connect to Azure IoT hub.

We are not aware of the required settings to connect.

We will explore and let you know.

 

Thanks,

Lavanya S P

+1 (1 Stimme)
RE: Azure IoT Hub - MQTT Connection
Antwort
05.06.19 14:51 als Antwort auf Lavanya S Palanisamy.

Hi,

that sounds great. 

 

There is an C SDK available on GIT but I was not able to understand how to use this in the XDK Workbanch to get a connection.

(https://github.com/Azure/azure-iot-sdk-c

And there is also a guide about "How to Port the Azure IoT C SDK to Other Platforms" available

(https://github.com/Azure/azure-c-shared-utility/blob/master/devdoc/porting_guide.md)

 

But even this ddn´t helped me. 

I guess I need to spend more time to get my C experience back in my mind.

0 (0 Stimmen)
RE: Azure IoT Hub - MQTT Connection
Antwort
05.09.19 20:43 als Antwort auf Christoph Maryniok.
Any update on this? I would need to connect to Azure IoT too? I'm using Mita but no luck.
0 (0 Stimmen)
RE: Azure IoT Hub - MQTT Connection
Antwort
16.09.19 10:03 als Antwort auf Raghupathi Reddy.

Hi, sorry for the late reply.

I had no real succes to link the XDK direct to Azure.

My current sollution is a Raspberry Pi with Windows Iot core with an MQTT Broker that receives MQTT messages from the XDK and foreward everything to Azure.

There are some NuGet packages available that makes it easy to create the MQTT Broker.

0 (0 Stimmen)