Skip to content

Commit c5de03a

Browse files
nimble/eatt: Add multi-channel support for EATT
Add support for multiple EATT channels per connection. Add manual ble_eatt_connect() API and optional auto-connect after encryption.
1 parent b18cbe2 commit c5de03a

3 files changed

Lines changed: 274 additions & 32 deletions

File tree

nimble/host/include/host/ble_att.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,17 @@ uint16_t ble_att_preferred_mtu(void);
355355
*/
356356
int ble_att_set_preferred_mtu(uint16_t mtu);
357357

358+
/**
359+
* Manually establish L2CAP Enhanced Connection
360+
*
361+
* @param conn_handle ACL connection handle
362+
* @param chan_num Number of channels to establish
363+
*
364+
* @return 0 on sucess;
365+
* NimBLE host error return code on
366+
* error.
367+
*/
368+
int ble_eatt_connect(uint16_t conn_handle, uint8_t chan_num);
358369
#ifdef __cplusplus
359370
}
360371
#endif

0 commit comments

Comments
 (0)