mobizt / FirebaseClient

🔥Async Firebase Client for Arduino. Supports Realtime Database, Cloud Firestore Database, Firebase Storage, Cloud Messaging, Google Cloud Functions and Google Cloud Storage.
MIT License
125 stars 7 forks source link

Conflict Between AsyncClient Class Definitions in FirebaseClient and AsyncTCP Libraries #3

Closed kalu1 closed 9 months ago

kalu1 commented 9 months ago

Hi, I am experiencing a compilation error due to a conflict between the AsyncClient class definitions in the FirebaseClient and AsyncTCP libraries. This issue is causing a redefinition error and preventing my project from compiling successfully. Is there a solution how to use both libraries? Thanks Lukas

The Terminal log: Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/core/FirebaseApp.h:30, from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:36, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AsyncClient/AsyncClient.h:42:7: error: redefinition of 'class AsyncClient' class AsyncClient ^~~ In file included from src/WiFiManager.h:6, from src/main.cpp:3: .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.h:55:7: note: previous definition of 'class AsyncClient' class AsyncClient { ^~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/core/FirebaseApp.h:35, from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:36, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:36:18: error: 'async_data_item_t' in 'class AsyncClient' does not name a type AsyncClient::async_data_item_t sData = nullptr; ^~~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/core/FirebaseApp.h:35, from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:36, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h: In member function 'void AuthRequest::asyncRequest(AsyncClient, const String&, const String&, const String&, AsyncResult&, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:52:9: error: 'sData' was not declared in this scope sData = aClient->newSlot(cVec, host, extras, "", async_request_handler_t::http_post, AsyncClient::slot_options_t(true, false, true, false, false, false), uid); ^~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:52:9: note: suggested alternative: 'stat' sData = aClient->newSlot(cVec, host, extras, "", async_request_handler_t::http_post, AsyncClient::slot_options_t(true, false, true, false, false, false), uid); ^~~~~ stat .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:52:26: error: 'class AsyncClient' has no member named 'newSlot' sData = aClient->newSlot(cVec, host, extras, "", async_request_handler_t::http_post, AsyncClient::slot_options_t(true, false, true, false, false, false), uid); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:52:107: error: 'slot_options_t' is not a member of 'AsyncClient' sData = aClient->newSlot(cVec, host, extras, "", async_request_handler_t::http_post, AsyncClient::slot_options_t(true, false, true, false, false, false), uid); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:57:22: error: 'class AsyncClient' has no member named 'setContentLength' aClient->setContentLength(sData, sData->request.payload.length()); ^~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:60:29: error: 'class AsyncClient' has no member named 'sVec' slot = aClient->sVec.size() - 1; ^~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:61:22: error: 'class AsyncClient' has no member named 'process' aClient->process(sData->async); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:62:22: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h: In member function 'void AuthRequest::process(AsyncClient, AsyncResult&, AsyncResultCallback)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:83:18: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:84:18: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h: In member function 'FirebaseError AuthRequest::err()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:95:13: error: 'sData' was not declared in this scope if (sData && sData->refResult) ^~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:95:13: note: suggested alternative: 'stat' if (sData && sData->refResult) ^~~~~ stat .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h: In member function 'void AuthRequest::remove(AsyncClient)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/./core/AuthRequest.h:104:18: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:40, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: At global scope: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:861:22: error: 'slot_options_t' in 'class AsyncClient' does not name a type AsyncClient::slot_options_t opt; ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:867:138: error: 'AsyncClient::slot_options_t' has not been declared async_request_data_t(AsyncClient aClient, const String &path, async_request_handler_t::http_request_method method, AsyncClient::slot_options_t opt, DataOptions options, file_config_data file, AsyncResult aResult, AsyncResultCallback cb, const String &uid = "") ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'typename std::enable_if<((! std::is_same<T1, void>::value) && (! std::is_same<T1, AsyncResult>::value)), T1>::type Database::get(AsyncClient&, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:82:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(), nullptr, nullptr, &result, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'typename std::enable_if<((! std::is_same<T1, void>::value) && (! std::is_same<T1, AsyncResult>::value)), T1>::type Database::get(AsyncClient&, const String&, DataOptions&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:128:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, false, false, false, false, options.shallow), &options, nullptr, &result, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, AsyncResult&, bool)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:146:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, sse, true, false, false, false), nullptr, nullptr, &aResult, NULL);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, AsyncResultCallback, bool, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:164:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, sse, true, false, false, false), nullptr, nullptr, nullptr, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, DataOptions&, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:188:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, false, true, false, false, false), &options, nullptr, &aResult, NULL);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, DataOptions&, AsyncResultCallback, const String&)':
.pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:212:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, false, true, false, false, false), &options, nullptr, nullptr, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, file_config_data, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:259:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(), nullptr, &file, &aResult, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::get(AsyncClient&, const String&, file_config_data, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:307:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(), nullptr, &file, nullptr, cb, uid); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'bool Database::existed(AsyncClient&, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:326:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(), &options, nullptr, &result, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::ota(AsyncClient&, const String&, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:345:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, false, false, false, true, false), nullptr, nullptr, &aResult, NULL);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::ota(AsyncClient&, const String&, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:364:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_get, AsyncClient::slot_options_t(false, false, false, false, true, false), nullptr, nullptr, nullptr, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::set(AsyncClient&, const String&, file_config_data, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:485:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_put, AsyncClient::slot_options_t(false, false, true, false, true, false), nullptr, &file, &aResult, nullptr);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::set(AsyncClient&, const String&, file_config_data, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:533:99: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_put, AsyncClient::slot_options_t(false, false, true, false, true, false), nullptr, &file, nullptr, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'String Database::push(AsyncClient&, const String&, T)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:562:100: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_post, AsyncClient::slot_options_t(), nullptr, nullptr, &result, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::push(AsyncClient&, const String&, T, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:591:100: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_post, AsyncClient::slot_options_t(false, false, true, false, true), nullptr, nullptr, &aResult, NULL); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::push(AsyncClient&, const String&, T, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:620:100: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_post, AsyncClient::slot_options_t(false, false, true, false, true), nullptr, nullptr, nullptr, cb, uid); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::push(AsyncClient&, const String&, file_config_data, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:667:100: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_post, AsyncClient::slot_options_t(false, false, true, false, true, false), nullptr, &file, &aResult, nullptr);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::push(AsyncClient&, const String&, file_config_data, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:715:100: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_post, AsyncClient::slot_options_t(false, false, true, false, true, false), nullptr, &file, nullptr, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'bool Database::remove(AsyncClient&, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:785:102: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_delete, AsyncClient::slot_options_t(), nullptr, nullptr, &result, nullptr); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::remove(AsyncClient&, const String&, AsyncResult&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:802:102: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_delete, AsyncClient::slot_options_t(false, false, true, false, false, false), nullptr, nullptr, &aResult, nullptr); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::remove(AsyncClient&, const String&, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:819:102: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, async_request_handler_t::http_delete, AsyncClient::slot_options_t(false, false, true, false, false, false), nullptr, nullptr, nullptr, cb, uid); ^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:843:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:844:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:40, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In constructor 'Database::async_request_data_t::async_request_data_t(AsyncClient, const String&, async_request_handler_t::http_request_method, int, DataOptions, file_config_data, AsyncResult, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:872:19: error: 'struct Database::async_request_data_t' has no member named 'opt' this->opt = opt; ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'bool Database::storeAsync(AsyncClient&, const String&, const T&, async_request_handler_t::http_request_method, bool, AsyncResult, AsyncResultCallback, const String&)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:888:31: error: 'class AsyncClient' has no member named 'reqEtag' if (!async && aClient.reqEtag.length() == 0) ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:890:70: error: 'slot_options_t' is not a member of 'AsyncClient' async_request_data_t aReq(&aClient, path, mode, AsyncClient::slot_options_t(false, false, async, payload.indexOf("\".sv\"") > -1, false, false), &options, nullptr, aResult, cb, uid);
^~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h: In member function 'void Database::asyncRequest(Database::async_request_data_t&, const char
)': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:904:17: error: 'struct Database::async_request_data_t' has no member named 'opt' request.opt.app_token = app_token; ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:909:22: error: 'async_data_item_t' is not a member of 'AsyncClient' AsyncClient::async_data_item_t sData = request.aClient->newSlot(cVec, service_url, request.path, extras, request.method, request.opt, request.uid); ^~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:909:41: error: 'sData' was not declared in this scope AsyncClient::async_data_item_t sData = request.aClient->newSlot(cVec, service_url, request.path, extras, request.method, request.opt, request.uid); ^~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:909:41: note: suggested alternative: 'stat' AsyncClient::async_data_item_t sData = request.aClient->newSlot(cVec, service_url, request.path, extras, request.method, request.opt, request.uid); ^~~~~ stat .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:909:66: error: 'class AsyncClient' has no member named 'newSlot' AsyncClient::async_data_item_t sData = request.aClient->newSlot(cVec, service_url, request.path, extras, request.method, request.opt, request.uid); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:909:139: error: 'struct Database::async_request_data_t' has no member named 'opt' AsyncClient::async_data_item_t sData = request.aClient->newSlot(cVec, service_url, request.path, extras, request.method, request.opt, request.uid); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:924:30: error: 'class AsyncClient' has no member named 'setFileContentLength' request.aClient->setFileContentLength(sData); ^~~~~~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:929:30: error: 'class AsyncClient' has no member named 'setContentLength' request.aClient->setContentLength(sData, strlen(payload)); ^~~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:932:21: error: 'struct Database::async_request_data_t' has no member named 'opt' if (request.opt.ota) ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:944:26: error: 'class AsyncClient' has no member named 'process' request.aClient->process(sData->async); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/database/Database.h:945:26: error: 'class AsyncClient' has no member named 'handleRemove' request.aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:46, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/firestore/Firestore.h: In member function 'void Firestore::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/firestore/Firestore.h:652:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/firestore/Firestore.h:653:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:52, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/messaging/Messaging.h: In member function 'void Messaging::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/messaging/Messaging.h:90:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/messaging/Messaging.h:91:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:58, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/storage/Storage.h: In member function 'void Storage::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/storage/Storage.h:90:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/storage/Storage.h:91:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:64, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/cloud_storage/CloudStorage.h: In member function 'void CloudStorage::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/cloud_storage/CloudStorage.h:90:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/cloud_storage/CloudStorage.h:91:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ In file included from .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/FirebaseClient.h:70, from src/main.cpp:7: .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/functions/Functions.h: In member function 'void Functions::loop()': .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/functions/Functions.h:90:26: error: 'class AsyncClient' has no member named 'process' aClient->process(true); ^~~ .pio/libdeps/esp32doit-devkit-v1/FirebaseClient/src/functions/Functions.h:91:26: error: 'class AsyncClient' has no member named 'handleRemove' aClient->handleRemove(); ^~~~ src/main.cpp: At global scope: src/main.cpp:20:52: error: no matching function for call to 'AsyncClient::AsyncClient(WiFiClientSecure&, network_config_data&)' AsyncClient aClient(ssl_client, getNetwork(network)); // Async client for Firebase ^ In file included from src/WiFiManager.h:6, from src/main.cpp:3: .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.h:57:5: note: candidate: 'AsyncClient::AsyncClient(tcp_pcb)' AsyncClient(tcp_pcb* pcb = 0); ^~~ .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.h:57:5: note: candidate expects 1 argument, 2 provided .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.h:55:7: note: candidate: 'AsyncClient::AsyncClient(const AsyncClient&)' class AsyncClient { ^~~ .pio/libdeps/esp32doit-devkit-v1/AsyncTCP/src/AsyncTCP.h:55:7: note: candidate expects 1 argument, 2 provided

mobizt commented 9 months ago

https://github.com/mobizt/FirebaseClient/blob/46ef120ccc0d11b4e37b9e5dd8a3077a9c174690/examples/Database/Async/Get/Get.ino#L190-L194

mobizt commented 9 months ago

Now the library was updated and change the class name from AsyncClient to AsyncClientClass.

Then you can use AsyncClientClass directly and don't have to define the macro FIREBASE_ASYNC_CLIENT in config file as above post.

In the library examples, we still prefer to use the shorter name of AsyncClient by using the keyword "using" in C++ like the following.

using AsyncClient = AsyncClientClass;

kalu1 commented 8 months ago

Hi, thanks for the changes. With the new version of Lib, I recieved the error below, even if i want to use the async set example from the scratch. Could you tell me if it is issue on my side or something in the lib? Thanks c:/users/.../.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\src\main.cpp.o:(.literal._Z5setupv+0x3c): undefined reference to `Firebase' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32dev\firmware.elf] Error 1

mobizt commented 8 months ago

Please update to v0.0.36.

Thanks for report this issue.

jiperez11 commented 8 months ago

Thanks 👌🏼

El dom, 11 feb. 2024 8:44 a. m., Suwatchai K. @.***> escribió:

Please update to v0.0.36.

Thanks for report this issue.

— Reply to this email directly, view it on GitHub https://github.com/mobizt/FirebaseClient/issues/3#issuecomment-1937758978, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGL3TMBOGI5KZRMO65JKT3YTDDMBAVCNFSM6AAAAABDAPFRKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXG42TQOJXHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>