mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-28 15:20:39 +00:00
14 lines
428 B
Plaintext
14 lines
428 B
Plaintext
PRIMARY_SERVICE, GAP_SERVICE
|
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "GATT Counter"
|
|
|
|
// add Battery Service
|
|
#import <battery_service.gatt>
|
|
|
|
PRIMARY_SERVICE, GATT_SERVICE
|
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
|
|
|
// Counter Service
|
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
|
// Counter Characteristic, with read, write and notify
|
|
CHARACTERISTIC, 0000FF11-0000-1000-8000-00805F9B34FB, READ | WRITE | NOTIFY | DYNAMIC,
|