Functions | |
at_ble_status_t | at_ble_l2cap_cid_register (at_ble_handle_t conn_handle, uint16_t cid) |
Registers a custom CID to received data from, when the L2CAP received data on the registered CID an AT_BLE_L2CAP_RX event will be reported. More... | |
at_ble_status_t | at_ble_l2cap_cid_unregister (at_ble_handle_t conn_handle, uint16_t cid) |
Unregister a previously registered custom CID. More... | |
at_ble_status_t | at_ble_l2cap_tx (at_ble_handle_t conn_handle, uint16_t cid, uint8_t *data, uint16_t len) |
Sends a custom L2CAP message using the given CID. More... | |
at_ble_status_t at_ble_l2cap_cid_register | ( | at_ble_handle_t | conn_handle, |
uint16_t | cid | ||
) |
Registers a custom CID to received data from, when the L2CAP received data on the registered CID an AT_BLE_L2CAP_RX event will be reported.
[in] | conn_handle | Handle of the connection |
[in] | cid | L2CAP CID to register |
at_ble_status_t at_ble_l2cap_cid_unregister | ( | at_ble_handle_t | conn_handle, |
uint16_t | cid | ||
) |
Unregister a previously registered custom CID.
[in] | conn_handle | Handle of the connection |
[in] | cid | L2CAP CID to unregister |
at_ble_status_t at_ble_l2cap_tx | ( | at_ble_handle_t | conn_handle, |
uint16_t | cid, | ||
uint8_t * | data, | ||
uint16_t | len | ||
) |
Sends a custom L2CAP message using the given CID.
[in] | conn_handle | Handle of the connection |
[in] | cid | L2CAP CID to use when sending the data |
[in] | data | Data to send |
[in] | len | Length of data, in bytes |