espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 153 forks source link

After connecting to the MQTT broker, after a few hours, the message "esp-tls: couldn't get hostname for :xxxxxx.ap-northeast-1.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0" suddenly appears, and the connection is disconnected. (CA-303) #192

Closed imammy-hacomono closed 11 months ago

imammy-hacomono commented 11 months ago

We are using the W5500 Ethernet chip for MQTT communication with AWS IoT over Ethernet. We have loaded the necessary certificates onto the device, and the connection with the MQTT broker works fine initially.

However, after maintaining the connection for some time, we encounter the following error:

"E (25774312) esp-tls: couldn't get hostname for :xxxxx-ats.iot.ap-northeast-1.amazonaws.com: getaddrinfo() returns 202, addrinfo=0x0"

Could you please explain what might be causing this issue and if there are any workarounds to resolve it?

imammy-hacomono commented 11 months ago

can someone help me I am very in trouble. This event occurs after a certain period of time has passed after connecting to the MQTT broker.