espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

imammy-hacomono opened this issue · comments

commented

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?

commented

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.