Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ported Mqtt demo mqtt_demo_mutual_auth,but stuck at sendPacket when run MQTT_Connect (CA-338) #223

Open
zhangkehan opened this issue Jun 13, 2024 · 0 comments

Comments

@zhangkehan
Copy link

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

@github-actions github-actions bot changed the title Ported Mqtt demo mqtt_demo_mutual_auth,but stuck at sendPacket when run MQTT_Connect Ported Mqtt demo mqtt_demo_mutual_auth,but stuck at sendPacket when run MQTT_Connect (CA-338) Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant