AnsweredAssumed Answered

SPWF04Sx MQTTCONN problem with Azure

Question asked by Fabio Ciani on Mar 26, 2018
Latest reply on Mar 29, 2018 by Elio Cometti

Hello,

I can't connect via MQTT to an Azure server.

I have a dedicated DeviceID with Primary and Secondary keys on an hypothetical XXX Azure portal.

So I generated my Shared Access Signature from the primary key and tried to connect at port 8883 (TLS) with

 

AT+S.MQTTCONN=XXX.azure-devices.net,8883,,2,XXX.azure-devices.net/DeviceID/api-version=2016-11-14,SharedAccessSignature sr=XXX.azure-devices.net&sig=KA%2BSBotfK%2BFPFUvKf4Xtb1z3zPLzfplNkMsWmMXu5oo%3D&se=1521901101,DeviceID,,,,,

 

and MQTTCONN command always return "Certificate Error 23" (but no certificates are present on the portal).

 

I tried with several MQTT clients and they let me connect without problems with these credentials (and without any certificate).

 

Thanks for helping me.

Outcomes