Is anyone else getting this compilation error?

Guys I’m getting this error below, this happens when I try to compile the Ubidots.h library under Arduino IDE , is someone else having the same issue?

C:\Users\RosaleO\Documents\Arduino\libraries\Ubidots\Ubidots.cpp: In constructor ‘Ubidots::Ubidots(String)’:
C:\Users\RosaleO\Documents\Arduino\libraries\Ubidots\Ubidots.cpp:31: error: ambiguous overload for ‘operator=’ in ‘((Ubidots*)this)->Ubidots::_le = 0’
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/WString.h:86: note: candidates are: String& String::operator=(const String&)
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/WString.h:87: note: String& String::operator=(const char*)
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/WString.h:88: note: String& String::operator=(const __FlashStringHelper*)

Thanks

Oscar

I found the answer, the class provided for the Ubidots guys has a little error, you just need go into the ubidots.cpp file and edit the variable _le=0 it should look as following:

_le="";
1 Like

Thanks @kaifanos, glad you were able to solve the issue. Indeed we’ve also experienced some compiling issues among different IDEs. Hope this fix will make the library compatible with more IDE versions.

Which version and OS were you using?

Hi @aguspg , I’m using 1.0.6 IDE version and I’ve tested that code under Win7 and OS X Yosemite, after that change my code is working fine.

Best regards !!

Oscar

1 Like

Perfect! Thanks

1 Like