mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
examples: add GATT_DATABASE_HASH instead of GATT_SERVICE_CHANGED Characteristic
This commit is contained in:
parent
043f8832f5
commit
1be6721a18
@ -4,7 +4,7 @@ CHARACTERISTIC, GAP_APPEARANCE, READ | WRITE | DYNAMIC,
|
|||||||
// GAP Peripheral Privacy Flag
|
// GAP Peripheral Privacy Flag
|
||||||
CHARACTERISTIC, 2A02, READ | WRITE | DYNAMIC, 00
|
CHARACTERISTIC, 2A02, READ | WRITE | DYNAMIC, 00
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "Delayed Response"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "Delayed Response"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Some Service
|
// Some Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -5,7 +5,7 @@ CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Counter"
|
|||||||
#import <battery_service.gatt>
|
#import <battery_service.gatt>
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Counter Service
|
// Counter Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Streamer"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Streamer"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Test Service
|
// Test Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -11,4 +11,4 @@ CHARACTERISTIC, GAP_DEVICE_NAME, READ, "HID Keyboard"
|
|||||||
#import <hids.gatt>
|
#import <hids.gatt>
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
@ -11,4 +11,4 @@ CHARACTERISTIC, GAP_DEVICE_NAME, READ, "HID Mouse"
|
|||||||
#import <hids.gatt>
|
#import <hids.gatt>
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
@ -3,7 +3,7 @@ CHARACTERISTIC, GAP_DEVICE_NAME, READ, "BTstack"
|
|||||||
CHARACTERISTIC, GAP_APPEARANCE, READ, 00 00
|
CHARACTERISTIC, GAP_APPEARANCE, READ, 00 00
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
PRIMARY_SERVICE, FFF0
|
PRIMARY_SERVICE, FFF0
|
||||||
CHARACTERISTIC, FFF1, READ | WRITE | DYNAMIC,
|
CHARACTERISTIC, FFF1, READ | WRITE | DYNAMIC,
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SM Pairing Peripheral"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SM Pairing Peripheral"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Dummy Service
|
// Dummy Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SPP+LE Counter"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SPP+LE Counter"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Counter Service
|
// Counter Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Streamer"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "LE Streamer"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Test Service
|
// Test Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
@ -2,7 +2,7 @@ PRIMARY_SERVICE, GAP_SERVICE
|
|||||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SPP+LE Counter"
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "SPP+LE Counter"
|
||||||
|
|
||||||
PRIMARY_SERVICE, GATT_SERVICE
|
PRIMARY_SERVICE, GATT_SERVICE
|
||||||
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
||||||
|
|
||||||
// Counter Service
|
// Counter Service
|
||||||
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
PRIMARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user