NodeMCU + GSM module
Posted: Thu Dec 27, 2018 12:25 pm
Hi . I need some help , I can´t find any tutorial about this topic. I need to connect my ESP8266 with GSM module SIM800L + I would like to code in Arduino IDE (I saw one tutorial in Lua but i dont want to learn new language) . when I try this code
Code: Select all
, serial monitor writes lot of symbols over and over : "⸮⸮@⸮B??" .... Module is powered by battery and they are connected through RX TX pins. So is it possible? Please help.#include <SoftwareSerial.h>
String Arsp, Grsp;
SoftwareSerial gsm(10, 11); // RX, TX
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Testing GSM SIM800L");
gsm.begin(4800);
}
void loop() {
// put your main code here, to run repeatedly:
if(gsm.available())
{
Grsp = gsm.readString();
Serial.println(Grsp);
}
if(Serial.available())
{
Arsp = Serial.readString();
gsm.println(Arsp);
}
}