Skip to content

Commit

Permalink
bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
aron-bordin committed Apr 19, 2015
1 parent d67e435 commit 9955ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Bluetooth/Bluetooth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ void Bluetooth::setupBluetooth(){

btSerial->begin(9600);

delay(200);

btSerial->write("AT+BAUD4");
delay(1100);
Serial.println("\nSetting bluetooth with 9600");
Expand Down Expand Up @@ -130,7 +132,8 @@ Bluetooth::Bluetooth(int r, int t){
setrxPin(r);
settxPin(t);
setName("PNGFramework");
setPIN(6666);
setPIN(1234);
setMessageEnd('\0');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Bluetooth/examples/Chat/Chat.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Bluetooth *blue = new Bluetooth(2, 3); //RX=2, TX=3

void setup(){
Serial.begin(9600);
blue->setName("Robo1-TCC");
blue->setPIN(1234);
blue->setName("PNGArduinoFramework");
blue->setPIN(6666);
blue->setMessageEnd('#');
blue->setupBluetooth();
}
Expand Down

0 comments on commit 9955ad7

Please sign in to comment.