-
Notifications
You must be signed in to change notification settings - Fork 60
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
Sending GPS data to Firebase #200
Comments
A7672E ? ? |
A7672E FASE |
I haven't seen this version. Is it a LilyGo board? |
My bad😞 I meant T-A7670 |
The example you are using does not support https requests. Please use the https request example test. Please make sure that the request URL is accessible before testing. |
Please can you help me with a sample code of sending and requesting data from firebase? |
What is Firebase? I haven't heard of it. Please send me a link to see if it can help you. |
Google firebase database. There's a Firebase URL and Firebase authentication secret code and also a path. The SSL port for firebase is 443 |
Google? Well, Google is blocked in my country by the firewall, I can't connect via 4G, so I can't help you. |
Okay, thank you so much. I really appreciate it |
This code seems to work fine through WiFi Client. But I've been getting errors trying to use TinyGSM Library with the Esp32 Firebase library.
` |
You should use the secure client instead of the unencrypted client |
This works 😁😁😁 Thank you |
Hi` guys, I'm new to programming the A7672E board. I want to send my GPS to firebase database. But I keep getting bad request error. I modified the Https client example code from the repository. I just replaced the URL, the resource path and the port. I would be glad if someone can help me with a code. Thank you
`#define TINY_GSM_MODEM_A7670
#include "utilities.h"
#include <TinyGsmClient.h>
#include <ArduinoHttpClient.h>
// Set serial for debug console
#define SerialMon Serial
#define TINY_GSM_USE_GPRS true
#define TINY_GSM_USE_WIFI false
// Set GSM PIN
#define GSM_PIN ""
// Your GPRS credentials
const char apn[] = "web.gprs.mtnnigeria.net";
const char gprsUser[] = "web";
const char gprsPass[] = "web";
// Firebase details
const char firebaseHost[] = "firebaseio.com";
const char firebaseAuth[] = "auth-token"; // Firebase Database Secret
const int firebasePort = 443; //
#ifdef DUMP_AT_COMMANDS
StreamDebugger debugger(SerialAT, SerialMon);
TinyGsm modem(debugger);
#else
TinyGsm modem(SerialAT);
#endif
TinyGsmClient client(modem);
HttpClient http(client, firebaseHost, firebasePort);
void setup() {
Serial.begin(115200);
#ifdef BOARD_POWERON_PIN
pinMode(BOARD_POWERON_PIN, OUTPUT);
digitalWrite(BOARD_POWERON_PIN, HIGH);
#endif
}
void loop() {
// Simulate GPS data (replace with actual GPS code if available)
String latitude = "6.5244"; // Example latitude
String longitude = "3.3792"; // Example longitude
}
`
The text was updated successfully, but these errors were encountered: