refactor(ble): add functions to check if profile is open/connected by address (#2993)

Helper functions for BLE profile statuses.
This commit is contained in:
snoyer
2025-07-19 14:51:53 +01:00
committed by GitHub
parent cef7af4408
commit fe91cc6625
2 changed files with 18 additions and 3 deletions

View File

@@ -33,6 +33,9 @@ bt_addr_le_t *zmk_ble_profile_address(uint8_t index);
bt_addr_le_t *zmk_ble_active_profile_addr(void);
struct bt_conn *zmk_ble_active_profile_conn(void);
bool zmk_ble_profile_is_connected(uint8_t index);
bool zmk_ble_profile_is_open(uint8_t index);
bool zmk_ble_active_profile_is_open(void);
bool zmk_ble_active_profile_is_connected(void);
char *zmk_ble_active_profile_name(void);