Errors when compiling examples for thingsboard

Hi - I am trying out thingsboard and find that when I try to compile any of the examples I get what is possibly a library conflict with existing libraries installed:
Some of the(many) messages reads:

In file included from C:\Users\Richard\Documents\Arduino\libraries\ThingsBoard\examples\0000-arduino_send_telemetry\0000-arduino_send_telemetry.ino:8:
C:\Users\Richard\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:28:16: error: default template arguments may not be used in template friend declarations
   28 |   friend class ThingsBoardSized;

0000-arduino_send_telemetry:32:1: error: 'ThingsBoard' does not name a type; did you mean 'ThingsBoard_h'?
   32 | ThingsBoard tb(espClient);

I am trying to compile the example 0000-arduino_send_telemetry.ino for a esp8266
thanks
regards
Russell

Well, the sketch you are trying to use is for an Arduino Uno connected to an ESP8266 as a wifi Co-Processor. Are you trying to program an ESP8266 Dev board? Something like a NodeMCU or a Wemos D1 Mini? If so, you'd want something like the 0003-esp8266_send_data sketch.

Hi, thanks for the reply. Yes, I was using a D1 Wemos.
I did switch to the example that you suggested
(I also seemed not to have the library installed correctly),
now I get a compile without errors.

thanks again
Russell

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.