-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for external client only scenario #29
Conversation
I don't think this is the issue because this is the port of my other library project which intensively tested especially networking test and all work fine. And your changes about build options (native WiFi and ethernet) are not related to gsm network in anyway. |
Ok, I think I may went too fast and did not explain it thoroughly, let me rephrase: If I define these constants: #define ESP_GOOGLE_SHEET_CLIENT_DISABLE_ONBOARD_WIFI
#define ESP_GOOGLE_SHEET_CLIENT_DISABLE_NATIVE_ETHERNET I get this compile error:
To fix this error, I am proposing to change #if defined(ESP32) || defined(ESP8266)
config.internal.reconnect_wifi = WiFi.getAutoReconnect();
#endif to #if defined(ESP_GOOGLE_SHEET_CLIENT_WIFI_IS_AVAILABLE)
config.internal.reconnect_wifi = WiFi.getAutoReconnect();
#endif |
Actually, WiFi is the ESP32 Arduino Core library. Do you think is it strange? This is likely you are using outdated ESP32 Core SDK. |
Additionally, the outdate ESP32 Arduino Core WiFi library has the reconnect bugs when this kind of function was called. |
I don't have any issue for the Arduino IDE with latest ESP32 Core SDK v2.0.14. The only issue is the forward declarations issue when the If I have to update the Note that from your image, V2.0.13 in the Boards Manager is from Arduino which supports only Arduino made ESP32 module. |
So I think you're missing my point.. If I tell the library to not use ESP's native Wifi nor Ethernet, the code in this function does not honor that, because it will try to use With my proposal, it will honor that. I first wrote #if (defined(ESP32) || defined(ESP8266)) && defined(ESP_GOOGLE_SHEET_CLIENT_WIFI_IS_AVAILABLE)) But then I found that |
I don't miss anything. Your mentioned about compilation error because of Your conclusion about The function There are many WiFi libraries (driver to work with WiFi module) from Arduino for Arduino boards that used u-blox module which don't have this function then we can't just use You have to test on all devices or even compiling it on different platforms that library supported. ESP-Google-Sheet-Client/library.json Line 15 in 7b6909a
|
Ok I understand your point if this option is enabled, WiFi will never include because of the following line and cause the compilation error when WiFi function was later used. ESP-Google-Sheet-Client/src/GS_Network.h Line 20 in 7b6909a
|
Yes exactly, thanks for merging 👍 |
Hi, sorry to bug you again, but i did some more debugging after your comment here - then I found out I had to explicitly tell the library to disable wifi and ethernet in
src/ESP_Google_Sheet_client_FS_Config.h
(I uncommented the following lines):But now the library was not compiling properly and I had to change a
#ifdef
in order for it to compile properly (see changes).I also took the liberty of updating the README to explicitly underline this feature :)
Again, much kudos to your work on all your ESP libraries, they are really good and helpful!