Can we not use the firebase authentication without TCP? #615
-
I'm not able to connect to Realtime Database while using authentications, tried using the native AT Commands without TCP connection works, but while using the example provided in the library, but couldn't connect to the database to get data! is there any possibility to connect without TCP Client. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can't communicate with server without client because it required to handle the request and response based on protocols used and also provides the communication session. Some AT commands provide the TCP client functionalities to communicate with server. You have to use some AT modem wrapper client library or create your AT wrapper client class that provides the Arduino Client (or Stream) derived class interfaces that supports the basic Arduino Client functions to use with this library e.g. That such client is called generic or basic client that handles the http request and response. The examples for using basic Client are here. |
Beta Was this translation helpful? Give feedback.
-
Code used :
^ is the serial log of the operation till it reaches the first iteration of the loop, it repeats the same log, I'm not sure where the mistake lies, everything is as in the example!! this was the same output when I used the GSM Client!! Token error: -4 and message: connection lost. But I can still see that my module is connected to network, the NETLIGHT on the module keeps blinking continuously to make sure it stays connected!! |
Beta Was this translation helpful? Give feedback.
-
The next time, if you refer to GSM modem, please describe your device clearly because of AT command also allied to WiFi chip too. |
Beta Was this translation helpful? Give feedback.
For TinyGSMClient, you should follow these examples instead.
https://github.com/mobizt/Firebase-ESP-Client/tree/main/examples/ExternalClient/RTDB/GSM