ESP32 GSheet token error code:-111

Hello,

I have a problem when I try to connect the ESP with the Google Sheet, like you see in the lines below this message appears when I changed to a router of an Internet provider that has its time 4 minutos shifted. When the ESP connects with a hotspot of the cellphone or another internet provider everything is ok

ESP Google Sheet Client v1.4.4

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

Token info: type = OAuth2.0 access token, status = error

Token error: code: -111, message: System time or library reference time was not set. Use GSheet.setSystemTime to set time.

Token info: type = OAuth2.0 access token, status = error

Could you send me some advices about it.

Regards,

Jean

Many security tokens, such as those used in two-factor authentication (2FA) or OAuth tokens, have short lifespans. If the router's clock is off, these tokens might be considered expired or not yet valid, causing authentication failures.

may be that's your issue.

A router should always be at the correct time. Don't use that one :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.