Library for using the xbee-compatible Bluetooth Bee Module on an m3pi.

Dependencies:   SensoryTest

Fork of btbee by Nikolas Goldin

Revision:
2:12c38a710982
Parent:
1:56f437e4d9e0
Child:
3:ddeb620fb25e
diff -r 56f437e4d9e0 -r 12c38a710982 btbee.cpp
--- a/btbee.cpp	Thu May 16 12:09:30 2013 +0000
+++ b/btbee.cpp	Thu May 16 14:01:24 2013 +0000
@@ -3,13 +3,15 @@
 btbee::btbee(PinName respin, PinName tx, PinName rx) : 
   Serial(tx,  rx) , reset_out(respin) 
 {
-  reset_out.write(1); 
+  reset_out.write(1);
+  baud(DEFAULT_BAUD); 
 }
 
 btbee::btbee( ) : 
   Serial(p28,p27),  reset_out(p26)
 {
   reset_out.write(1); 
+  baud(DEFAULT_BAUD); 
 }
 
 void btbee::reset(void){
@@ -18,6 +20,17 @@
 reset_out.write(1);
 }
 
+void btbee::at_baud(void){
+baud(AT_BAUD);
+}
+
+void btbee::factory_baud(void){
+baud(FACTORY_BAUD);
+}
+
+void btbee::default_baud(void){
+baud(DEFAULT_BAUD);
+}
 
 /* Read from the serial as long as it is readable. 
 *  Params: pointer to char array for the return,