WinCC OA MQTT to Azure IoT Hub

Find and share HowTos to various installations / configurations!

Post Reply
1 post • Page 1 of 1
Posts: 19
Joined: Thu Sep 05, 2013 1:51 pm

WinCC OA MQTT to Azure IoT Hub

Post by aleksandar.postolov » Mon Feb 03, 2020 11:28 am

Hi Guys

Has anyone tried to connect to Azure IoT Hub?

I tried to connect to a IoT Hub directly with the MQTT driver. But I always get

Code: Select all

Driver communication failure, failure condition on HmiConnection
As describet in de Microsoft Doc's I used the following. For the Password I used a SAS token, generated with Visual Studio Code.
  • Port: 8883
  • Username: {iothubhostname}/{device_id}/?api-version=2018-06-30
  • Password: SharedAccessSignature sig={signature-string}&se={expiry}&sr={URL-encoded-resourceURI}
Since you have to use a secured connection to the IoT Hub, I used TLS. And therefore I entred in the certificate field the DigiCert Baltimore Root Certificate.

Firewall, Ports ect. are open.

Anyone an idea what could be wrong?

best regards

Post Reply
1 post • Page 1 of 1