Token error #306
Replies: 4 comments 2 replies
-
The library TinyGSMClient supports multiples connections (sockets) which depends on device used. You can't use only one gsm_client for all connections (TCP/socket sessions). You should define different clients and its mux number. |
Beta Was this translation helpful? Give feedback.
-
Your topic is "Token error" and I can't see any debug information from your post. You should try with the example first then adapt it with your code. The error may be related to memory or network which you should set the debug port on Arduino IDE to check. |
Beta Was this translation helpful? Give feedback.
-
You mentioned about the error from some requests. If it's not authenticated, all Firebase requests will be rejected. You should debug your code logic first by adding some check points in your code. If you found the issue, you should create some minimal but complete code that can reproduce the issue and post here with debug information. |
Beta Was this translation helpful? Give feedback.
-
You should check the value returns from You should not run any Firebase function when |
Beta Was this translation helpful? Give feedback.
-
I have used the custom token authentication in firebase with service account, have handled the part where I can get the auth token and proceed further, I completed almost everything and had a successful connection, later after implementing my custom provisioning methods in the device, I find the device unresponsive and I get the "Path not exist", and sometime I even get "response payload read timed out".
Provisioning method used: I get the endpoint of the path from my app, everything else is built inside the device.
Can get the correct end point reference after the provisioning method.
I tried all the methods suggested in other forum Q&A and still it doesn't work for me..
I have 3 streams running to check for 3 variables at different part of the data structure
databasePath = "/Devices/..."
Other secrets are kept in a separate file to keep the code clean.
this is the part where I handle my complete authentication function.
Beta Was this translation helpful? Give feedback.
All reactions