mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-09 03:27:57 +00:00
nimble/gap: Make max device length configurable
X-Original-Commit: a1122f0c7a942baf6e0c963fcae9b8df9484a27b
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
MYNEWT_VAL(BLE_SVC_GAP_PPCP_SLAVE_LATENCY) || \
|
||||
MYNEWT_VAL(BLE_SVC_GAP_PPCP_SUPERVISION_TMO))
|
||||
|
||||
/* XXX: This should be configurable. */
|
||||
#define BLE_SVC_GAP_NAME_MAX_LEN 31
|
||||
#define BLE_SVC_GAP_NAME_MAX_LEN \
|
||||
MYNEWT_VAL(BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH)
|
||||
|
||||
static ble_svc_gap_chr_changed_fn *ble_svc_gap_chr_changed_cb_fn;
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ syscfg.defs:
|
||||
BLE_GATT_CHR_F_WRITE_AUTHOR
|
||||
Set to '-1' to make characteristic read only.
|
||||
value: -1
|
||||
BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH:
|
||||
description: Maximum length for "Device Name" characteristics
|
||||
value: 31
|
||||
BLE_SVC_GAP_APPEARANCE:
|
||||
description: 'Device appearance'
|
||||
value: 0
|
||||
|
||||
Reference in New Issue
Block a user