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

Dependencies:   SensoryTest

Fork of btbee by Nikolas Goldin

btbee.h

Committer:
mmpeter
Date:
2014-05-21
Revision:
18:eddba761c425
Parent:
5:2e759cc06191

File content as of revision 18:eddba761c425:

#include "mbed.h"
#include "platform.h"

#define FACTORY_BAUD 9600
#define DEFAULT_BAUD 115200
#define AT_BAUD 38400

// this is a test comment
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*);
  int read_line(char*,const int, int*);

 protected:
  DigitalOut reset_out;
};