-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathBluetooth.h
More file actions
38 lines (29 loc) · 738 Bytes
/
Bluetooth.h
File metadata and controls
38 lines (29 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/************************************************
Written by Cruz Monrreal II
Created on 06-26-2012
Modified on 11-11-2012
Updates can be found here:
https://github.com/cmonr/Arduino-Bluetooth-Library
************************************************/
#ifndef Bluetooth_h
#define Bluetooth_h
#include <stdint.h>
#include <Arduino.h>
#include <Serial.h>
class Bluetooth{
public:
// public methods
Bluetooth();
~Bluetooth();
char beginCMD();
void endCMD();
void connect();
char connectToAddr( String addr );
char isConnected();
private:
String readUntilLine();
String readUntilStr( String str, unsigned long timeout );
String readUntilDelay( unsigned long delay );
unsigned long start;
};
#endif