Skip to content

Instantly share code, notes, and snippets.

@neufuture
Created July 18, 2011 22:37
Show Gist options
  • Save neufuture/1090876 to your computer and use it in GitHub Desktop.
Save neufuture/1090876 to your computer and use it in GitHub Desktop.
Arduino configuration code for Bluetooth Bee
// Configuration commands for Bluetooth Bee
void setup(){
Serial.begin(38400);
Serial.print("\r\n+STWMOD=0\r\n"); // Slave device
delay(200);
Serial.print("\r\n+STBD=57600\r\n"); // Baud rate
delay(200);
Serial.print("\r\n+STNA=BTBee\r\n"); // Device name
delay(200);
Serial.print("\r\n+STAUTO=1\r\n"); // Auto connect
delay(200);
Serial.print("\r\n+STOAUT=1\r\n"); // Permit pairing
delay(200);
Serial.print("\r\n+STPIN=2222\r\n"); // Pin code
delay(200);
Serial.print("\r\n+LOSSRECONN=1\r\n"); // Reconnect
}
void loop(){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment