0

How should I connect nodemcu with sim800l? Will the code be similar to the one used for interfacing sim800l with arduino uno?

I tried to use the GPIO pins 1 and 3.

#include <SoftwareSerial.h>
SoftwareSerial mySerial(3,1); 
void setup()
{
Serial.begin(9600);
mySerial.begin(9600);
}
void loop() 
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
{
while(Serial.available())
{
mySerial.write(Serial.read());
}
mySerial.println();
mySerial.println("\n");
delay(1000);
}
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.