Skip to content

Instantly share code, notes, and snippets.

@volca
Created April 27, 2013 13:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save volca/5473218 to your computer and use it in GitHub Desktop.
Save volca/5473218 to your computer and use it in GitHub Desktop.
Arduino example for BlueShield
String tmp = "";
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
tmp += char(Serial.read());
delay(2);
}
if(tmp.length() > 0) {
Serial.println(tmp);
tmp = "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment