thingsboard-client-sdk icon indicating copy to clipboard operation
thingsboard-client-sdk copied to clipboard

error: 'ThingsBoardHttp' does not name a type

Open msbyte opened this issue 6 years ago • 7 comments

Hi,

I get the following error message sketch_jan02c:54:1: error: 'ThingsBoardHttp' does not name a type ThingsBoardHttp tb(client, TOKEN, THINGSBOARD_SERVER, THINGSBOARD_PORT); ^ When I try to compile this example https://github.com/thingsboard/ThingsBoard-Arduino-MQTT-SDK/tree/master/examples/0005-arduino-sim900_send_telemetry_http

I using version 0.4.0 of ThingsBoard library and Arduino IDE 1.8.10

/Thanks

msbyte avatar Jan 02 '20 10:01 msbyte

I had a very similar problem using platfromio, same error. The ArduinoHttpClient library uses conflicting names with the ones in https://github.com/espressif/arduino-esp32 The file name for the .h file is the same. Try to use a specific path, or rename one of the files. In my case I forked the library to rename the file because I could not avoid the conflict any other way.

Panometric avatar Sep 01 '20 19:09 Panometric

I have the same issue ... any solution? image

michaldengusiak avatar May 31 '21 16:05 michaldengusiak

As I mentioned, it's a header file name conflict with that library. My fork is public if you want to try it instead. https://github.com/Panometric/ArduinoHttpClient

Panometric avatar Jun 07 '21 22:06 Panometric

This is the problem with Thingsboard library version 0.4.0, just install the older version (0.2.0), now it's working for me...

KCHegde avatar Aug 29 '21 08:08 KCHegde

Same problem with v0.6.0

mfalkvidd avatar Mar 01 '22 13:03 mfalkvidd

Hi. Anyone has solution for this instead of using older library? This problem occurs when I compile for ESP32. Any idea? Thanks

falfazli avatar Jun 26 '22 02:06 falfazli

Currently facing same issue here. Any solutions that does not involve not using older versions?

cebms avatar Jul 22 '22 22:07 cebms

@imbeacon I think this issue can be closed, this issue refers to an old version and the new examples should fix it.

MathewHDYT avatar Mar 13 '23 13:03 MathewHDYT