ItKindaWorks / ESPHelper

A library to make using WiFi & MQTT on the ESP8266 easy.
GNU General Public License v3.0
327 stars 67 forks source link

PubSubClient conflict #4

Closed fpereiracostaa closed 7 years ago

fpereiracostaa commented 7 years ago

Any ideia what can be causing this error?

Arduino: 1.8.1 (Windows 10), Placa:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

C:\Users\Francisco\Documents\Arduino\libraries\ESPHelper-master\src\ESPHelper.cpp: In member function 'void ESPHelper::publish(const char, const char, bool)':

C:\Users\Francisco\Documents\Arduino\libraries\ESPHelper-master\src\ESPHelper.cpp:223:39: error: invalid conversion from 'const char' to 'const uint8_t {aka const unsigned char*}' [-fpermissive]

client.publish(topic, payload, retain);

                                   ^

In file included from C:\Users\Francisco\Documents\Arduino\libraries\ESPHelper-master\src\ESPHelper.h:31:0,

             from C:\Users\Francisco\Documents\Arduino\libraries\ESPHelper-master\src\ESPHelper.cpp:23:

C:\Users\Francisco\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:12: error: initializing argument 2 of 'boolean PubSubClient::publish(const char, const uint8_t, unsigned int)' [-fpermissive]

boolean publish(const char* topic, const uint8_t * payload, unsigned int plength);

        ^

exit status 1 Erro ao compilar para a placa Generic ESP8266 Module.

fpereiracostaa commented 7 years ago

[SOLVED] Updated the PubSubClient Library