Merge "Expose connection update callback (2/3)" am: b1def383da
am: 6cf186eb6b
am: 85ccdb8629
Change-Id: I24b390caa55284ab96601fbe7cd8418943036bb1
This commit is contained in:
commit
b75531444d
2 changed files with 11 additions and 0 deletions
|
@ -170,6 +170,11 @@ typedef void (*services_added_callback)(int conn_id, btgatt_db_element_t *added,
|
|||
typedef void (*phy_updated_callback)(int conn_id, uint8_t tx_phy,
|
||||
uint8_t rx_phy, uint8_t status);
|
||||
|
||||
/** Callback invoked when the connection parameters for a given connection changes */
|
||||
typedef void (*conn_updated_callback)(int conn_id, uint16_t interval,
|
||||
uint16_t latency, uint16_t timeout,
|
||||
uint8_t status);
|
||||
|
||||
typedef struct {
|
||||
register_client_callback register_client_cb;
|
||||
connect_callback open_cb;
|
||||
|
@ -189,6 +194,7 @@ typedef struct {
|
|||
services_removed_callback services_removed_cb;
|
||||
services_added_callback services_added_cb;
|
||||
phy_updated_callback phy_updated_cb;
|
||||
conn_updated_callback conn_updated_cb;
|
||||
} btgatt_client_callbacks_t;
|
||||
|
||||
/** Represents the standard BT-GATT client interface. */
|
||||
|
|
|
@ -109,6 +109,10 @@ typedef void (*mtu_changed_callback)(int conn_id, int mtu);
|
|||
typedef void (*phy_updated_callback)(int conn_id, uint8_t tx_phy,
|
||||
uint8_t rx_phy, uint8_t status);
|
||||
|
||||
/** Callback invoked when the connection parameters for a given connection changes */
|
||||
typedef void (*conn_updated_callback)(int conn_id, uint16_t interval,
|
||||
uint16_t latency, uint16_t timeout,
|
||||
uint8_t status);
|
||||
typedef struct {
|
||||
register_server_callback register_server_cb;
|
||||
connection_callback connection_cb;
|
||||
|
@ -125,6 +129,7 @@ typedef struct {
|
|||
congestion_callback congestion_cb;
|
||||
mtu_changed_callback mtu_changed_cb;
|
||||
phy_updated_callback phy_updated_cb;
|
||||
conn_updated_callback conn_updated_cb;
|
||||
} btgatt_server_callbacks_t;
|
||||
|
||||
/** Represents the standard BT-GATT server interface. */
|
||||
|
|
Loading…
Reference in a new issue