mobizt / ESP-Google-Sheet-Client

Arduino Google Sheet REST client library for Arduino
MIT License
80 stars 15 forks source link

Cannot use with Arduino Nano RP2040 Connect #38

Closed SimoneMSR closed 5 months ago

SimoneMSR commented 5 months ago

Describe the bug I cannot build the Example Get for Spreadsheet. It gives these errors

D:\Progetti\Maciocavallo\arduino\arduino.ino: In function 'void setup()':
D:\Progetti\Maciocavallo\arduino\arduino.ino:105:5: error: 'WiFi' was not declared in this scope
  105 |     WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
      |     ^~~~
D:\Progetti\Maciocavallo\arduino\arduino.ino:110:29: error: 'WL_CONNECTED' was not declared in this scope; did you mean 'WiFI_CONNECTED'?
  110 |     while (WiFi.status() != WL_CONNECTED)
      |                             ^~~~~~~~~~~~
      |                             WiFI_CONNECTED

exit status 1

Compilation error: 'WiFi' was not declared in this scope

If I try to replace the WiFi libraries includes with simply WiFi I get a lot of errors like the following

c:\users\simon\documents\arduino\libraries\esp-google-sheet-client\src\client\sslclient\client/BSSL_Helper.h: In function 'void bssl::insecure_start_chain(const br_x509_class**, const char*)':
c:\users\simon\documents\arduino\libraries\esp-google-sheet-client\src\client\sslclient\client/BSSL_Helper.h:381:33: error: too few arguments to function 'void br_x509_decoder_init(br_x509_decoder_context*, void (*)(void*, const void*, size_t), void*, void (*)(void*, const void*, size_t), void*)'
  381 |             br_x509_decoder_init(&xc->ctx, insecure_subject_dn_append, xc);
      |             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If I try to replace the WiFi library with WiFiNINA or WiFiNINA_Generic I get this error

c:\Users\simon\Documents\Arduino\libraries\ESP-Google-Sheet-Client\src\client\SSLClient\client\BSSL_CertStore.cpp: In member function 'int bssl::CertStore::initCertStore(fs::FS&, const char*, const char*)':
c:\Users\simon\Documents\Arduino\libraries\ESP-Google-Sheet-Client\src\client\SSLClient\client\BSSL_CertStore.cpp:123:40: error: 'FILE_WRITE' was not declared in this scope
  123 |     File index = _fs->open(_indexName, FILE_WRITE);
      |                                        ^~~~~~~~~~
c:\Users\simon\Documents\Arduino\libraries\ESP-Google-Sheet-Client\src\client\SSLClient\client\BSSL_CertStore.cpp:129:38: error: 'FILE_READ' was not declared in this scope
  129 |     File data = _fs->open(_dataName, FILE_READ);
      |                                      ^~~~~~~~~
c:\Users\simon\Documents\Arduino\libraries\ESP-Google-Sheet-Client\src\client\SSLClient\client\BSSL_CertStore.cpp: In static member function 'static const br_x509_trust_anchor* bssl::CertStore::findHashedTA(void*, void*, size_t)':
c:\Users\simon\Documents\Arduino\libraries\ESP-Google-Sheet-Client\src\client\SSLClient\client\BSSL_CertStore.cpp:215:48: error: 'FILE_READ' was not declared in this scope
  215 |     File index = cs->_fs->open(cs->_indexName, FILE_READ);
      |                                                ^~~~~~~~~

exit status 1

Compilation error: exit status 1

IDE and its version:

Additional context As board manager I use Raspberry Pi Pico RP2040 ==> Arduino Nano RP2040

mobizt commented 5 months ago

It is not supported.

Only RP2940 Arduino Pico was supported.

https://github.com/mobizt/ESP-Google-Sheet-Client?tab=readme-ov-file#rp2040-arduino-sdk-installation