mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
131 lines
6.3 KiB
Plaintext
131 lines
6.3 KiB
Plaintext
|
PRIMARY_SERVICE, GAP_SERVICE
|
||
|
CHARACTERISTIC, GAP_DEVICE_NAME, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, GAP_APPEARANCE, READ | WRITE | DYNAMIC,
|
||
|
// GAP Peripheral Privacy Flag
|
||
|
CHARACTERISTIC, 2A02, READ | WRITE | DYNAMIC, 00
|
||
|
// GAP Reconnection Address - 6 bytes
|
||
|
CHARACTERISTIC, 2A03, READ | WRITE | DYNAMIC,
|
||
|
// GAP Peripheral Preferred Connection Parameters
|
||
|
CHARACTERISTIC, 2A04, READ | WRITE | DYNAMIC,
|
||
|
|
||
|
PRIMARY_SERVICE, GATT_SERVICE
|
||
|
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
|
||
|
|
||
|
SECONDARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||
|
CHARACTERISTIC, FF10, READ | WRITE | DYNAMIC,
|
||
|
|
||
|
SECONDARY_SERVICE, 0000FF11-0000-1000-8000-00805F9B34FB
|
||
|
CHARACTERISTIC, FF11, READ | WRITE | DYNAMIC,
|
||
|
|
||
|
//
|
||
|
PRIMARY_SERVICE, FFFF
|
||
|
CHARACTERISTIC, FFFD, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, FFFE, READ | WRITE | DYNAMIC,
|
||
|
//
|
||
|
PRIMARY_SERVICE, FFFF
|
||
|
CHARACTERISTIC, FFFD, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, FFFE, READ | WRITE | DYNAMIC,
|
||
|
//
|
||
|
// SECONDARY_SERVICE, FFFA
|
||
|
// CHARACTERISTIC, FFFB, READ | WRITE | DYNAMIC,
|
||
|
//
|
||
|
// SECONDARY_SERVICE, FFF9
|
||
|
// INCLUDE_SERVICE, FFFA
|
||
|
//
|
||
|
// SECONDARY_SERVICE, FFF7
|
||
|
// INCLUDE_SERVICE, FFF9
|
||
|
// CHARACTERISTIC, FFF8, READ | WRITE | DYNAMIC,
|
||
|
//
|
||
|
SECONDARY_SERVICE, FFF4
|
||
|
// INCLUDE_SERVICE, FFF7
|
||
|
// INCLUDE_SERVICE, FFFC
|
||
|
// INCLUDE_SERVICE, FFFF
|
||
|
CHARACTERISTIC, FFF5, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, FFF6, READ | WRITE | DYNAMIC,
|
||
|
//
|
||
|
// PRIMARY_SERVICE, FFF0
|
||
|
// INCLUDE_SERVICE, FFF4
|
||
|
// CHARACTERISTIC, FFF1, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED | ENCRYPTION_KEY_SIZE_7 | AUTHENTICATION_REQUIRED,
|
||
|
// CHARACTERISTIC, FFF2, READ | WRITE | DYNAMIC,
|
||
|
// CHARACTERISTIC, FFF3, READ | INDICATE,
|
||
|
// CHARACTERISTIC, 00001234-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC,
|
||
|
|
||
|
// Primary Service with 16-bit UUID, included service
|
||
|
PRIMARY_SERVICE, F000
|
||
|
INCLUDE_SERVICE, FFF4
|
||
|
// Characteristics 16 and 128 bit with different authoriztion/authentication/encryption requirements and read/write flags
|
||
|
// - no requirements
|
||
|
CHARACTERISTIC, F100, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, 0000F101-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
|
||
|
// - neither read nor writable
|
||
|
CHARACTERISTIC, F102, DYNAMIC,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
|
||
|
CHARACTERISTIC, 0000F103-0000-1000-8000-00805F9B34FB, DYNAMIC,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
|
||
|
// - authorization required
|
||
|
CHARACTERISTIC, F104, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC, 0000F105-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
// - authenthication required
|
||
|
CHARACTERISTIC, F106, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC, 0000F107-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
// - encryptiont with 128 bit key required
|
||
|
CHARACTERISTIC, F108, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC, 0000F109-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
// - write only
|
||
|
CHARACTERISTIC, F10A, WRITE | DYNAMIC,
|
||
|
|
||
|
// - read/write, incl. server characteristic configuration, characteristic format (uint8_t, exponent = 0, unitless, Bluetooth SIG, and characteristic aggregate format
|
||
|
CHARACTERISTIC, F10B, READ | WRITE | DYNAMIC,
|
||
|
SERVER_CHARACTERISTIC_CONFIGURATION, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC_FORMAT, 1, 04, 0, 2700, 1, 0000
|
||
|
CHARACTERISTIC_FORMAT, 2, 0c, 0, 2700, 1, 0000
|
||
|
CHARACTERISTIC_AGGREGATE_FORMAT, 1, 2
|
||
|
|
||
|
// - read/write/write without response
|
||
|
CHARACTERISTIC, F10D, READ | WRITE | WRITE_WITHOUT_RESPONSE | DYNAMIC,
|
||
|
// - read/write without response
|
||
|
CHARACTERISTIC, F10C, READ | WRITE_WITHOUT_RESPONSE | DYNAMIC,
|
||
|
// - read/authenticated signed writes
|
||
|
CHARACTERISTIC, F10E, READ | WRITE | AUTHENTICATED_SIGNED_WRITE | DYNAMIC,
|
||
|
|
||
|
// Primary Service with 128-bit UUID, included service
|
||
|
PRIMARY_SERVICE, 0000F001-0000-1000-8000-00805F9B34FB
|
||
|
INCLUDE_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
|
||
|
INCLUDE_SERVICE, 0000FF11-0000-1000-8000-00805F9B34FB
|
||
|
// Characteristics 16 and 128 bit with different authoriztion/authentication/encryption requirements and read/write flags
|
||
|
// - no requirements
|
||
|
CHARACTERISTIC, F200, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE | WRITE_WITHOUT_RESPONSE,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
|
||
|
CHARACTERISTIC, 0000F201-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
|
||
|
// - neither read nor writable
|
||
|
CHARACTERISTIC, F202, DYNAMIC,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
|
||
|
CHARACTERISTIC, 0000F203-0000-1000-8000-00805F9B34FB, DYNAMIC,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
|
||
|
// - authorization required
|
||
|
CHARACTERISTIC, F204, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC, 0000F205-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
|
||
|
// - authenthication required
|
||
|
CHARACTERISTIC, F206, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC, 0000F207-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
|
||
|
// - encryptiont with 128 bit key required
|
||
|
CHARACTERISTIC, F208, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC, 0000F209-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
|
||
|
|
||
|
|