Find and share HowTos to various installations / configurations!
aleksandar.postolov
Posts: 19 Joined: Thu Sep 05, 2013 3:51 pm
WinCC OA MQTT to Azure IoT Hub
Post
by aleksandar.postolov » Mon Feb 03, 2020 12:28 pm
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
SocketSslHandshakeFailedError
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.
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
Aleks