I am using SIM A7670C GSM module connected to ESP32 Serial 2 and able to make the HTTP connection.
Below is the code I have written to open net as per AT_Commands of the A7670C.
How do I stream data from firebase instead of using GET command to save data uselessly?
include <HardwareSerial.h>
// Hardware Serial 2 pins
#define RXD2 16
#define TXD2 17
HardwareSerial MODEM(2);
const String APN = "airtelgprs.com";
const String USER = "";
const String PASS = "";
const String FIREBASE_HOST = "My_Project_link";
const String FIREBASE_SECRET = "DB_Secret";
void setup() {
Serial.begin(115200);
MODEM.begin(115200, SERIAL_8N1, RXD2, TXD2);
Serial.println("Initializing MODEM...");
sendATCommand("AT", 2000);
sendATCommand("AT+CREG?", 2000); // Network registration
sendATCommand("AT+CGATT=1", 2000); // GPRS attach
sendATCommand("AT+NETOPEN", 5000); // Open network
sendATCommand("AT+IPADDR", 2000); // Check IP
}
void loop(){
}