ESP8266; MQTT; DNS Not Working?



  • I'm using the GatewayESP8266MQTTClient sketch and trying to use the #define MY_CONTROLLER_URL_ADDRESS macro that was committed a few months ago.

    If I type in an IP address in quotes it works as expected, however, if I type in a DNS name it does not. Am I doing something wrong?

    I'm using the latest commit from the development branch.

    // Works
    #define MY_CONTROLLER_URL_ADDRESS "192.168.1.52"

    // Does not work
    #define MY_CONTROLLER_URL_ADDRESS "mosquitto.home"

    // Also does not work
    #define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"


Log in to reply
 

Suggested Topics

  • 3
  • 12
  • 34
  • 3
  • 7
  • 2

30
Online

11.6k
Users

11.2k
Topics

113.0k
Posts