GithubHelp home page GithubHelp logo

mobizt / esp-google-sheet-client Goto Github PK

View Code? Open in Web Editor NEW
75.0 5.0 15.0 2.68 MB

Arduino Google Sheet REST client library for Arduino

License: MIT License

C++ 21.83% C 78.17%
googlesheet googlesheetapi rest rest-api esp8266 esp32 arduino raspberry-pi rp2040

esp-google-sheet-client's Introduction

Mobizt's GitHub stats

I'm engineer from Thailand.

I'm working on machine condition monitoring and vibration analysis.

The Industrial IoTs, data processing and data acquisition are the fields that I focused.

I develop and maintain the Arduino C++ opensource libraries for embedded devices.

One of my projects Firebase Arduino Client Library for ESP8266 and ESP32 wins the Google Open Source Peer Bonus Program.

The E-mail client library for Arduino project is the first E-mail client library in the Arduino platform that allows the embedded device to send and receive E-mail.

I'm ready to support and help for fixing the issues and answering the questions related to my libraries

esp-google-sheet-client's People

Contributors

domingguss avatar mobizt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esp-google-sheet-client's Issues

Something wrong in range syntax

First of all - thanks for an excellent tutorial. I was amazed how far I got. I set up the API and I was able to list, create and write Google sheets. Just wonderful - would never have got this far on my own.

Here is my problem:
If I specify the spreadsheet as dataFilters1.add("a1Range","Sheet1!A1:A2") I get error:

"message": "Unable to parse range: Sheet1!B1:B3",

However if I change it to "A1:A2" I can read and write to the spreadsheet. What gives here ?

undefined reference to `tokenStatusCallback(gauth_token_info_t)'

Hello there,

I have no idea has to why this is not working, I implemented the example as showed.

I am on an esp32 and using platformIO

c:/users/maxim/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\nodemcu-32s\src\main.cpp.o:(.literal._Z5setupv+0x10c): undefined reference to tokenStatusCallback(gauth_token_info_t)'`

suggestion for improvement

I noticed that this part of fonction "GSheet.setTokenCallback(tokenStatusCallback);"
enter three times to the other fonction "void tokenStatusCallback(TokenInfo info)"
and the issue is that some time it success and in other it fail so it take a lot of time that the wdt is triggered, this is my terminal
when it fail:

STA IP Address: 192.168.1.103
Google Sheet Client v1.4.3

Token info: type = OAuth2.0 access token, status = on initializing
Token info: type = OAuth2.0 access token, status = on signing

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

Exception (4):
epc1=0x40247506 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

stack>>>

ctx: sys
sp: 3ffefdf0 end: 3fffffb0 offset: 0160
3ffeff50: 00001e94 3fff019c 3fff0298 3fff029e
3ffeff60: 3fff029a 3fff0212 3fff00fa 00000000
3ffeff70: 00000045 00000044 00007cf3 3fff0328
3ffeff80: 3fff0212 00000002 00001b6c 00000040
3ffeff90: 00000000 00000000 00000001 00000001

Cannot use with Arduino Nano RP2040 Connect

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:

  • Arduino NANO RP2040 Connect, PlatformIO
  • Version 2.3.2

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.