stuck at MQTT_Connect in establishMqttSession.
static int establishMqttSession( MQTTContext_t pMqttContext,
bool createCleanSession,
bool pSessionPresent )
mqttStatus = MQTT_Connect( pMqttContext, &connectInfo, NULL, CONNACK_RECV_TIMEOUT_MS, pSessionPresent );
That's exactly where it stops.
bytesSent = sendPacket( pContext,
pContext->networkBuffer.pBuffer,
packetSize );
Can't see error from the log.
I (3373) network: WiFi Connected to ap
I (3373) nvs_flash: Read 104 byte from NV:
I (3373) wifi: Connect before, so recovery.
I (3383) ux_task: network connected
I (3383) protocol: [1] message notice to MCU
I (3393) SNTP: Initializing SNTP
I (4403) SNTP: The current date/time in Shanghai is: Thu Jun 13 08:13:03 2024
I (4403) coreMQTT: Establishing a TLS session to afk8jj5a4ndin-ats.iot.ap-northeast-1.amazonaws.com:8883.
I (5323) SNTP: Standard time is: 2024-06-13 16:13:04
I (5323) SNTP: GET time 24-6-13 16:13:4 [4]
I (5323) protocol: [7] message notice to MCU
I (14893) SNTP: Standard time is: 2024-06-13 16:13:13
stuck at MQTT_Connect in establishMqttSession. static int establishMqttSession( MQTTContext_t pMqttContext, bool createCleanSession, bool pSessionPresent ) mqttStatus = MQTT_Connect( pMqttContext, &connectInfo, NULL, CONNACK_RECV_TIMEOUT_MS, pSessionPresent );
That's exactly where it stops. bytesSent = sendPacket( pContext, pContext->networkBuffer.pBuffer, packetSize );
Can't see error from the log. I (3373) network: WiFi Connected to ap I (3373) nvs_flash: Read 104 byte from NV: I (3373) wifi: Connect before, so recovery. I (3383) ux_task: network connected I (3383) protocol: [1] message notice to MCU I (3393) SNTP: Initializing SNTP I (4403) SNTP: The current date/time in Shanghai is: Thu Jun 13 08:13:03 2024 I (4403) coreMQTT: Establishing a TLS session to afk8jj5a4ndin-ats.iot.ap-northeast-1.amazonaws.com:8883. I (5323) SNTP: Standard time is: 2024-06-13 16:13:04 I (5323) SNTP: GET time 24-6-13 16:13:4 [4] I (5323) protocol: [7] message notice to MCU I (14893) SNTP: Standard time is: 2024-06-13 16:13:13