forked from sandeepmistry/arduino-BLEPeripheral
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBLEAttribute.h
More file actions
32 lines (26 loc) · 675 Bytes
/
BLEAttribute.h
File metadata and controls
32 lines (26 loc) · 675 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
#ifndef _BLE_ATTRIBUTE_H_
#define _BLE_ATTRIBUTE_H_
enum BLEAttributeType {
BLETypeService = 0x2800,
BLETypeCharacteristic = 0x2803,
BLETypeDescriptor = 0x2900
};
enum BLEProperty {
BLEBroadcast = 0x01,
BLERead = 0x02,
BLEWriteWithoutResponse = 0x04,
BLEWrite = 0x08,
BLENotify = 0x10,
BLEIndicate = 0x20
};
class BLEAttribute
{
public:
BLEAttribute(const char* uuid, enum BLEAttributeType type);
const char* uuid() const;
enum BLEAttributeType type() const;
private:
const char* _uuid;
enum BLEAttributeType _type;
};
#endif