Created
July 18, 2011 22:37
-
-
Save neufuture/1090876 to your computer and use it in GitHub Desktop.
Arduino configuration code for Bluetooth Bee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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