-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
JWT error (Off-Topic) #3
Comments
You should post in the Firebase repo. First, you should update the library to latest version. The Firebase function Normally you can set the time zone via You can set your device time yourself before calling |
Thanks for the suggestion
After upgrading the version, I found some problems using the latest FCM
example.
fbdo.setEthernetClient(ð, ETH_MAC, WIZNET_CS_PIN, WIZNET_RESET_PIN,
nullptr);
[image: image.png]
Problems using DHCP
Suwatchai K. ***@***.***> 於 2023年9月11日 週一 上午11:54寫道:
… You should post in the Firebase repo.
First, you should update the library to latest version.
The Firebase function setUDPClient is now deprecated.
Normally you can set the time zone via FirebaseConfig i.e.,
config.time_zone and config.daylight_offset
You can set your device time yourself before calling Firebase.begin too
which in this case, library will not touch your device time.
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGW7Z4UN4COAVTFKRAL3UITXZ2DRBANCNFSM6AAAAAA4SUISWI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I did not see the image. Please post your error here. |
Please go to GitHub and don't reply email directly. |
See the example, mac address is actually
|
The examples are here.
As the error shown, you use external client (Ethernet) to connect, and your WiFi is also off, library will not or unable to use your provided client to access NTP server to get the time as it required another UDP client which is now not included in this library. It is your job to set your device time manually before calling In some devices, user needs to set the library reference time to use internally via function In your case, only set up your ESP32 device time before calling |
The time |
Firebase.setSystemTime(1694425572); // Current Unix epoch Time
Serial.println(Firebase.getCurrentTime());
Serial.println(time(nullptr)); |
The function You should write your code carefully to prevent such human error. |
Ok I will check this and update. |
Now you can update library to v4.4.2 with this issue fixed. |
It's quite off topic here. When using The function The network connection callback function should do appropriate network disconnection first. For GSM and Ethernet integration ( You have two choices in your case.
For ClientThe client is generic/basic/plain network Arduino Client instead of SSL Client. Please see the Readme and examples for new version. |
Thanks for the bug report. I will check and update. |
I know it. |
Now you can update the library to fix the issue. |
Already running normally |
Thanks, the issue is usually found as the main library core has changed with huge improvement in memory and performance in v4.4.x. |
Hello author, this problem occurs when reconnecting after a few days
Token error: code: -1, message: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.
Will this problem occur if the gmtOffset setting of Firebase.setUDPClient does not match the current zone?
Or is there any part that needs special attention?
The text was updated successfully, but these errors were encountered: