Skip to content

Instantly share code, notes, and snippets.

@jywarren
Created November 22, 2016 19:51
Show Gist options
  • Save jywarren/09d1f93caf7f5e5e4a7dad2cf724bcad to your computer and use it in GitHub Desktop.
Save jywarren/09d1f93caf7f5e5e4a7dad2cf724bcad to your computer and use it in GitHub Desktop.
#include <SoftModem.h>
SoftModem modem = SoftModem();
void setup() {
Serial.begin(115200);
Serial.println("Booting");
delay(100);
modem.begin();
}
void loop() {
while(modem.available()){
Serial.print("Received");
int c = modem.read();
Serial.print((char)c);
}
if(Serial.available()){
modem.write(0xff);
while(Serial.available()){
char c = Serial.read();
modem.write(c);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment