espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
257 stars 154 forks source link

MQTT message is not received by device after 5min of idle time (CA-208) #111

Open sduddell opened 2 years ago

sduddell commented 2 years ago

Hi,

My device subscribes to an AWS IoT topic and waits for 30min until it receives a message. I see that if a message is published within 3-4 minutes, device receives it, but if the message is published after more than 5min, nothing is received by device. I don't see any disconnect/reconnect messages too. Device is not performing any task during this time, it just keeps on yielding using the function aws_iot_mqtt_yield . I have also tried to fix this issue by changing keepAliveIntervalInSec but no luck. I tried with not setting it and with 300 sec, still I see the issue. Any suggestions to fix.

Thanks!

shahpiyushv commented 2 years ago

@sduddell , using AWS Lifecycle events or AWS IoT Device Management Service, can you once check if your MQTT client is showing up as connected or disconnected?