Skip to content

Instantly share code, notes, and snippets.

@antonva
Created August 22, 2014 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonva/535cddfd9a13cd24d2a1 to your computer and use it in GitHub Desktop.
Save antonva/535cddfd9a13cd24d2a1 to your computer and use it in GitHub Desktop.
gsm test
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2,3);
void setup()
{
mySerial.begin(4800);
Serial.begin(4800);
}
void loop()
{
if (mySerial.available())
{
Serial.write(mySerial.read());
}
if (Serial.available())
{
mySerial.write(Serial.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment