This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
I am testing the mqtt_client_over_tls example code to publish a dummy message to our Azure cloud platform, for which I add "DigiCertAssuredIDRootG2.crt.pem" to the user file and change the global variables.
and change mqtt source file to char *MQTTClient_secureFiles[1] = {"DigiCertAssuredIDRootG2.crt.pem"}; , but I am unable to establish connection with our azure mqtt server and I am getting the following error
============================================
MQTT client Example Ver: 2.0.3
============================================
CHIP: 0x31000019
MAC: 2.7.0.0
PHY: 2.2.0.7
NWP: 3.22.0.1
ROM: 0
HOST: 3.0.1.71
MAC address: 10:ce:a9:47:bc:8f
============================================
[WIFI::INFO] [SlWifiConnEventHandler] POWERED_UP
[WIFI::INFO] MAC address: 10:ce:a9:47:bc:8f
[WIFI::INFO] [Event] STA connected to AP - BSSID:14:a7:2b:74:db:d1, SSID:Inthings
[WIFI::INFO] [NETAPP EVENT] IP Acquired: IP=192.168.1.18 , Gateway=192.168.1.1
[SlNetConnEventHandler] I/F 1 - CONNECTED (IP LEVEL)!
[SlNetConnEventHandler] I/F 1 - CONNECTED (INTERNET LEVEL)!
[SL-MBEDTLS::INFO] . Connect on tcp/*/4433 ...
startSNTP: Current time: Thu Sep 21 10:28:15 2023
[MQTT_APP::INFO] Subscribed to all topics successfully
[MQTT_APP::INFO] Wi-Fi connection is UP
[SL-MBEDTLS::INFO] InitTlsSocket:: sd=1, pTlsSock=2000c1a0 slSock=1
[SL-MBEDTLS::INFO] SlNetIfWifi_close:: Listener Socket 1 was removed
[MQTT_IF::ERROR] connect failed: -2006
[MQTT_APP::INFO] MQTT_EVENT_SERVER_DISCONNECT
[MQTT_APP::INFO] MQTT_EVENT_DESTROY
Hi,
I've assigned this to one of our SW engineers, please allow until tomorrow for feedback.
Hi,
I hope you're doing well! I am taking over the thread and will provide feedback before Thursday and likely sometime tomorrow.
Best,
Corinne
Hi,
Did you try this with TLS 1.2 and succeed in getting it to work? Or have you only tried this with TLS 1.3?