NodeMCU : Error compiling


I have been looking forward to the Cayenne MQTT but for some reason, I could not compile my program with the board NodeMCU in Arduino IDE.

But if I try compiling the same program with the board set to maybe Arduino Uno the compiler is done compiling. When I change the board back to NodeMCU the compiler shows error.

The error is:

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module)

Please help. Thanks in advance.


Is there anything above that? Usually for errors there’s more than just that in the console.


The error shown is:

Documents\Arduino\libraries\CayenneMQTT\src/CayenneMQTTClient/…/CayenneUtils/CayenneDataArray.h:201:15: note: no known conversion for argument 1 from ‘const __FlashStringHelper*’ to 'const char*

Documents\Arduino\libraries\CayenneMQTT\src/CayenneMQTTClient/…/CayenneUtils/CayenneDataArray.h:201:15: note: void CayenneMQTT::DataArray<BUFFER_SIZE, MAX_VALUES>::add(const char*, double) [with int BUFFER_SIZE = 64; int MAX_VALUES = 4]

inline void add(const char* unit, const double value)


I followed this from the Github and it worked.

Thanks for your help, anyway.