I have this code and I want to connect my modem to the internet using At commands, but I can’t see this information on the serial monitor, so I can be sure that my modem is receiving the esp32 code.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(44, 43);
void setup() {
// Setup debug stream
Serial.begin(38400);
delay(10);
mySerial.begin(38400);
delay(10);
Serial.println();
Serial.println(“GSM Modem”);
delay(10);
mySerial.println(“AT”);
mySerial.println(“AT+CGATT=1”);
mySerial.println(“AT+CGDCONT=1,\”IP\”,\”internt-aac\””);
mySerial.println(“AT#SGACT=3,1”);
// Now use StreamDbg instead of Serial1
}
void loop() {
}