BayEOS-Arduino  1.8.0_0.0.4
BayBluetooth.h
1 /*
2  * Arduino BayBluetooth
3  *
4  * S.Holzheu (holzheu@bayceer.uni-bayreuth.de)
5  *
6  * Class for sending BayEOS-Frames over a bluetooth serial Line
7  *
8  * Frames send over serial:
9  * [0xfe][length_of_data][API-ID][------------DATA-----------][CHECKSUM]
10  *
11  *
12  * START_BYTE,ESCAPE,XON,XOFF,NEWLINE,CARRIDGE RETURN
13  * in [length,api-id,data,checksum] will get escaped
14  * (see below)
15  *
16  *
17  */
18 
19 #ifndef BayBluetooth_h
20 #define BayBluetooth_h
21 
22 #include <inttypes.h>
23 #include <BayEOS.h>
24 #include <BaySerial.h>
25 #include <HardwareSerial.h>
26 #include <Arduino.h>
27 #include <EEPROM.h>
28 
29 
30 class BayBluetooth : public BaySerial {
31 public:
35  BayBluetooth(HardwareSerial &serial=Serial);
36 
40  void begin(long baud,const char* name);
44  void begin(long baud,int eeprom_offset, uint8_t start_byte);
48  void inquirable(void);
49 
50  int available(void){
51  return BaySerial::available();
52  }
53 
54 
55 };
56 
57 
58 #endif
int available(void)
Definition: BayBluetooth.h:50
void inquirable(void)
Definition: BayBluetooth.cpp:6
void begin(long baud, const char *name)
int available(void)
Definition: BaySerial.cpp:137
BayBluetooth(HardwareSerial &serial=Serial)
Definition: BayBluetooth.cpp:2