diff options
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r-- | extmod/modbluetooth.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index 96c9c4b9a..4e658a7a0 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -171,6 +171,10 @@ bool mp_bluetooth_is_active(void); // Gets the MAC addr of this device in big-endian format. void mp_bluetooth_get_device_addr(uint8_t *addr); +// Get or set the GAP device name that will be used by service 0x1800, characteristic 0x2a00. +size_t mp_bluetooth_gap_get_device_name(const uint8_t **buf); +int mp_bluetooth_gap_set_device_name(const uint8_t *buf, size_t len); + // Start advertisement. Will re-start advertisement when already enabled. // Returns errno on failure. int mp_bluetooth_gap_advertise_start(bool connectable, int32_t interval_us, const uint8_t *adv_data, size_t adv_data_len, const uint8_t *sr_data, size_t sr_data_len); |