Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By parrotface
#33142 Hi
Looks Good
loaded the ESP_WiFiSwitch.ino into Arduino IDE and compiled it.
Error Line53 PubSubClienr mqttClient;
"no matching function for call to 'PubSubClient::PubSubCient()'

This looks what I am trying to achieve. I require ESP to connect to MQTT server where I can change the IP address depending on which network I am on. Changing the IP with a web browser is just what I require.
Do I need to use any other ino or just ESP_WiFiSwitch.ino or is there somthing else I am missing

I am running Arduino IDE 1.6.4 with ESP upgrades on Linux Ubuntu
Many Thanks
User avatar
By parrotface
#33237 Thanks for help
Replaced PubSubClient and got further but now still can't compile.

line116 if (!MDNS.begin((char*) FQDN.c_str())) {
error - MDNS not declared in this scope

I wonder if I have missed something or got things wrong

In the IDE got 5 tabs
ESP_WiFiSwitch
EEPROM
MQTT
WebServer
WiFi

I have the corrisponding ino's one in each tab
This this correct or have I missed something

Many Thanks