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

Dependents:   configure_btbee m3pi_btTest Test_motor m3pi_ng ... more

btbee.h

Committer:
MatthiasK
Date:
2014-05-09
Revision:
5:2e759cc06191
Parent:
3:ddeb620fb25e

File content as of revision 5:2e759cc06191:

#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;
};