feat(ble): Set device name at runtime

This allows for the device name to be set at runtime, possible uses for this include a custom display screen that lets you type it in using the keycode state event, future configuration in zmk studio, or altering it per profile as per #1169
This commit is contained in:
ReFil 2024-09-25 20:35:42 +01:00 committed by GitHub
parent 58dcf5c285
commit 17f0a4d307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 27 additions and 19 deletions

View file

@ -39,6 +39,8 @@ char *zmk_ble_active_profile_name(void);
int zmk_ble_unpair_all(void);
int zmk_ble_set_device_name(char *name);
#if IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
int zmk_ble_put_peripheral_addr(const bt_addr_le_t *addr);
#endif /* IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL) */