Library for using the xbee-compatible Bluetooth Bee Module on an m3pi.
Dependencies: SensoryTest
Fork of btbee by
Diff: btbee.h
- Revision:
- 2:12c38a710982
- Parent:
- 1:56f437e4d9e0
- Child:
- 3:ddeb620fb25e
--- a/btbee.h Thu May 16 12:09:30 2013 +0000 +++ b/btbee.h Thu May 16 14:01:24 2013 +0000 @@ -1,11 +1,18 @@ #include "mbed.h" #include "platform.h" +#define FACTORY_BAUD 9600 +#define DEFAULT_BAUD 115200 +#define AT_BAUD 38400 + class btbee: public Serial{ public: btbee(PinName respin, PinName tx, PinName rx); btbee(void); void reset(void); + void at_baud(void); + void factory_baud(void); + void default_baud(void); int read_all(char*,const int, int*); protected: