- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
After connecting to AWS, subscribe,
We will publish, etc.
While waiting for publishing from the AWS server,
The MQTT session may be disconnected.
The calling sequence from the receive callback function is
It is as follows,
mqtt_thread_main ()
Mqtt_process_tcp_receive ()
Wiced_tcp_receive ()
Wiced_tls_receive_packet ()
Mbedtls_ssl_read ()
Since the return value of mbedtls_ssl_read () is an error,
"TCP receive error" log is output by mqtt_process_tcp_receive ().
What is the cause of the error?
Was access denied from the AWS server?
Thank you.
Solved! Go to Solution.
- Labels:
-
AWS
-
Wi-Fi Direct
-
WICED Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error code 2 means WICED_TIMEOUT. It has occurred because the TCP receive function timed out waiting for packets. Can you confirm that the MQTT connection as well as WLAN connection were stable when you saw the error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Inside mqtt_process_tcp_receive(), could you check the return value of wiced_tcp_receive()? That should provide the error code. I think the MQTT disconnection might cause this issue, so that should be investigated. Is your WLAN link stable throughout the MQTT connection? You can consider enabling WPRINT_ENABLE_NETWORK_INFO and WPRINT_ENABLE_NETWORK_DEBUG to check for WLAN link events.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for your reply.
I will check the return value of wiced_tcp_receive().
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
The return value of wiced_tcp_receive () was "2".
Do you know what caused the error?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error code 2 means WICED_TIMEOUT. It has occurred because the TCP receive function timed out waiting for packets. Can you confirm that the MQTT connection as well as WLAN connection were stable when you saw the error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you very much for your answer.
I will check it.
Thank you