mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
415 stars 118 forks source link

Error on FirebaseESP32.cpp str.erase(std::remove #12

Closed GuilhermeKROSS closed 5 years ago

GuilhermeKROSS commented 5 years ago

Hi, i'm having the following error message when i compile my project:

...\Arduino\libraries\Firebase-ESP32-master\src\FirebaseESP32.cpp: In member function 'std::cxx11::string FirebaseESP32::trim(std::cxx11::string&)':

...\Arduino\libraries\Firebase-ESP32-master\src\FirebaseESP32.cpp:2030:13: error: 'remove' is not a member of 'std'

str.erase(std::remove(str.begin(), str.end(), '\r'), str.end());

I have commented the lines 2030 and 2031. Doing this i can compile and download. Everything seems to be ok with that. mobizt Thaks for this amazing work you did and for sharing this great lib with us

mobizt commented 5 years ago

You're welcome and thank you for let me know. I will fix this in the next update.

mobizt commented 5 years ago

I just update to version 2.3.3. Do you still get error when set data?

GuilhermeKROSS commented 5 years ago

I just update to version 2.3.3. Do you still get error when set data?

Now everything works fine. Thanks again. Have a good day!