Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By devros
#25314 hi i have similar problems can't compile this code, tried different libraries but no luck, Any thoughts?
Code: Select allmqtt_led.ino:15:55: error: no matching function for call to 'PubSubClient::PubSubClient(char*&, int, void (&)(char*, byte*, unsigned int), WiFiClient&)'
mqtt_led.ino:15:55: note: candidates are:
In file included from mqtt_led.ino:1:0:
User avatar
By pelrun
#25344 https://github.com/Imroy/pubsubclient/ is the fork I am using; it's actively being developed and worked immediately for me without any issues.

It supports QoS and even has an example of OTA updating via published message, something I'm using successfully now in my project.
User avatar
By paysan
#62815 Arduino: 1.6.8 (Linux), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
I got this error. Please tell me what's wrong.
Wim


leeg:15: error: 'callback' was not declared in this scope
PubSubClient client(server, 1883, callback, wifiClient);
^
exit status 1
'callback' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.