Create a gist now

Instantly share code, notes, and snippets.

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