2016-11-02 09:53:23 +00:00
|
|
|
PRIMARY_SERVICE, GAP_SERVICE
|
2023-11-16 08:25:19 +00:00
|
|
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "GATT Counter"
|
2016-11-02 09:53:23 +00:00
|
|
|
|
|
|
|
// add Battery Service
|
|
|
|
#import <battery_service.gatt>
|
|
|
|
|
|
|
|
PRIMARY_SERVICE, GATT_SERVICE
|
2020-01-12 20:20:07 +00:00
|
|
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
2016-11-02 09:53:23 +00:00
|
|
|
|
|
|
|
// Counter Service
|
|
|
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
2023-11-16 08:25:19 +00:00
|
|
|
// Counter Characteristic, with read, write and notify
|
|
|
|
CHARACTERISTIC, 0000FF11-0000-1000-8000-00805F9B34FB, READ | WRITE | NOTIFY | DYNAMIC,
|