Using MQTT Driver to connect to Azure IOT Hub

Find and share HowTos to various installations / configurations!
Search

Post Reply
1 post • Page 1 of 1
Lfleming
Posts: 8
Joined: Tue Nov 07, 2017 3:05 pm

Using MQTT Driver to connect to Azure IOT Hub

Post by Lfleming » Tue Sep 22, 2020 2:54 pm

Hi,

Currently running WinCC OA 3.17 P006. I wish to connect to my Azure IOT hub in order to send/recieve data.

This looks possible with the aid of the MQTT driver, however I am having issues setting it up.
I've been following the Microsoft Documenation and setup the following parameters when configuring the MQTT Driver.
  • Type - TLS
  • Host:Port - <Hostname>:8883
  • Username - <HostName>/<DeviceID>
  • Password - <Generated SAS token using the primary connection string>
  • Certificate - DigiCert Baltimore Root Certificate
I've downloaded and installed the DigiCert Baltimore Root Certificate and generated a Password based on the microsoft documentation, but Unfortunatly I'm getting the following error.

WCCOAmqtt (7), 2020.09.22 14:51:38.094, SYS, SEVERE, 4/mqtt, _IOT_COMMS - Main connection error: NotAuthorized

WCCOAmqtt (7), 2020.09.22 14:51:38.094, SYS, SEVERE, 94, Driver communication failure, failure condition on HmiConnection, _IOT_COMMS


Was hoping someone could point to what I've configured wrong. Firewalls are disabled and it appears the driver can see the IOT hub.

Post Reply
1 post • Page 1 of 1