FCM tokens devices. #292
Unanswered
hermes-ribeiro
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is for demo. It used in these lines. Firebase-ESP8266/examples/Messaging/Messaging.ino Lines 71 to 75 in fa98e29 You can dynamically set from any string source at run time (change it later during use) e.g. read from remote server, local SD card or SPIFFS file, read from serial port, or human interfaces (Bluetooth app or web page) in the same way as you want to change WiFi SSID, password and some configuration data in your device at run time. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings from Brazil!
Thank you for making this excellent library available.
Sorry if my doubt is a bit amateur, I'm not very fallowed with firebase. My question is about FCM and device tokens. Following the instructions from the Firebase ESP8266 client library, we inserted the device tokens permanently:
#define FIREBASE_FCM_SERVER_KEY "FIREBASE_PROJECT_CLOUD_MESSAGING_SERVER_KEY"
#define FIREBASE_FCM_DEVICE_TOKEN_1 "RECIPIENT_DEVICE_TOKEN"
#define FIREBASE_FCM_DEVICE_TOKEN_2 "ANOTHER_RECIPIENT_DEVICE_TOKEN"
And when these same tokens are renewed in the client app by Firebase? Would I have to recompile Esp8266 with the new Token?
Thank you one more time!
Beta Was this translation helpful? Give feedback.
All reactions