Code: Select all
Bluefruit.setName("Test")
Currently I can change the name, but that is a problem for the planned app.
Thanks a lot.
Moderators: adafruit_support_bill, adafruit
Code: Select all
Bluefruit.setName("Test")
https://devzone.nordicsemi.com/f/nordic ... -read-onlyAnd last, how do I configure the profile/characteristic/etc for making the Device Name characteristic read only?
Set CONFIG_BT_DEVICE_NAME_GATT_WRITABLE=n
Code: Select all
typedef struct
{
ble_gap_conn_sec_mode_t write_perm; /**< Write permissions. */
uint8_t vloc:2; /**< Value location, see @ref BLE_GATTS_VLOCS.*/
uint8_t *p_value; /**< Pointer to where the value (device name) is stored or will be stored. */
uint16_t current_len; /**< Current length in bytes of the memory pointed to by p_value.*/
uint16_t max_len; /**< Maximum length in bytes of the memory pointed to by p_value.*/
} ble_gap_cfg_device_name_t;