Jak poslat do sériového monitoru IP adresu ? díky
#include <SoftwareSerial.h>
SoftwareSerial SIM800LSerial(12,13);//RX,TX
void setup() {
Serial.begin(9600);
SIM800LSerial.begin(9600);
Serial.println("Zapinam GPRS na modulu SIM800");
delay(10000);
SIM800LSerial.print("AT+SAPBR=3,1,\"Contype\",\"GPRS\"\r");
SIM800LSerial.flush();
SIM800LSerial.print("AT+SAPBR=3,1,\"APN\",\"internet\"\r");
SIM800LSerial.flush();
SIM800LSerial.print("AT+SAPBR=1,1\r");
SIM800LSerial.flush();
SIM800LSerial.print("AT+SAPBR=2,1\r");
SIM800LSerial.flush();
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}