Open KelvinyHenrique opened 1 year ago
I am having the same problem. The ESP8266 is issued an IP address from the router (PfSense), but no outbound connections are working. I am getting a timeout in DNS resolution (gethostbyname
) if I use a hostname, or in connect
, if I am using a raw IP address.
Using an ESP8266 HiLetgo NodeMCU (12E)
I was able to solve this by fixing the default MQTT host to mqtt.eclipseprojects.io
Environment
Development Kit: https://pt.aliexpress.com/item/1005004165920862.html My board is ESP-01s (ESP8266EX)
IDF version: 7085cc76
Development Env: [VSCODE IDE|Make]
Operating System: [Ubuntu]
Power Supply: [USB]
Problem Description
MQTT protocol over tcp example does not work
I built the original example, the changes I made were in the menuconfig, I set my ssid and password to connect the wifi, I also changed the Log output to debug to try to identify the error.
I always get the error MQTT_CLIENT: Error transport connect in an infinite loop.
Code to reproduce this issue
Example: https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/protocols/mqtt
Debug Logs
Other items if possible
sdkconfig: