-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBleDefines.h
57 lines (38 loc) · 1.71 KB
/
BleDefines.h
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
39
40
41
42
43
44
45
//
// BleDefines.h
// Created by Tony on 10/22/2012.
// Copyright (c) 2012 Jess Tech. All rights reserved.
//
#ifndef BleDefines_h
#define BleDefines_h
#define _PROXIMITY_ALERT_UUID 0x1802
#define _PROXIMITY_ALERT_PROPERTY_UUID 0x2a06
#define _PROXIMITY_ALERT_ON_VAL 0x01
#define _PROXIMITY_ALERT_OFF_VAL 0x00
#define _PROXIMITY_ALERT_WRITE_LEN 1
#define _PROXIMITY_TX_PWR_SERVICE_UUID 0x1804
#define _PROXIMITY_TX_PWR_NOTIFICATION_UUID 0x2A07
#define _PROXIMITY_TX_PWR_NOTIFICATION_READ_LEN 1
//#define _BATT_SERVICE_UUID 0xFFB0
//#define _LEVEL_SERVICE_UUID 0xFFB1
#define _BATT_SERVICE_UUID 0x180F
#define _LEVEL_SERVICE_UUID 0x2A19
#define _POWER_STATE_UUID 0xFFB2
#define _LEVEL_SERVICE_READ_LEN 1
#define _ACCEL_SERVICE_UUID 0xFFA0
#define _ACCEL_ENABLER_UUID 0xFFA1
#define _ACCEL_RANGE_UUID 0xFFA2
#define _ACCEL_READ_LEN 1
#define _ACCEL_X_UUID 0xFFA3
#define _ACCEL_Y_UUID 0xFFA4
#define _ACCEL_Z_UUID 0xFFA5
#define _KEYS_SERVICE_UUID 0x1803
#define _KEYS_NOTIFICATION_UUID 0x2A06
#define _KEYS_NOTIFICATION_READ_LEN 1
//Service
#define ISSC_SERVICE_UUID 0xfff0
//接收
#define ISSC_CHAR_RX_UUID 0xfff7
//发送
#define ISSC_CHAR_TX_UUID 0xfff6
#endif