Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By allmac
#42628 Please... any idea about what can be wrong to me?

1) ERROR LINE: PubSubClient client(wclient, serverURI, port);

2) ERROR MESSAGES:

MQTT_led_V1.06:42: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub) { // handle incoming message
^
MQTT_led_V1.06:42: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub) { // handle incoming message
^
MQTT_led_V1.06:42: error: expected ')' before '&' token
MQTT_led_V1.06:42: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub) { // handle incoming message
^
exit status 1
no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&, const char*&, const uint16_t&)'