Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
435 stars 115 forks source link

mqtt_basic example throws: "'MQTT' does not name a type" error. #52

Closed alrhalford closed 8 years ago

alrhalford commented 8 years ago

Using the Arduino IDE, and latest version of the PubSubClient library. Hardware is Sparkfun 'Thing' ESP8266 board. Error thrown at:

void callback(const MQTT::Publish& pub)

I've tried reinstalling the whole IDE from scratch, etc.

Thanks in advance :)

HW-Siew commented 8 years ago

Hi @alexhalford, have you downloaded the correct PubSubClient library. There are two with the same name.

Testato commented 8 years ago

And you must not update by library manager ;-)

alrhalford commented 8 years ago

Hi, yes, that solved the problem. I didn't know there were two :/

Thanks :)