Starts capturing the hci interface from the device using a callback.
Use bt_packet_logger_stop_capture() to stop receiving hci data.
- Parameters
-
client | The bt_packet_logger client to use |
callback | Callback to receive each packet from the hci interface. |
user_data | Custom pointer passed to the callback function. |
- Returns
- BT_PACKET_LOGGER_E_SUCCESS on success, BT_PACKET_LOGGER_E_INVALID_ARG when one or more parameters are invalid or BT_PACKET_LOGGER_E_UNKNOWN_ERROR when an unspecified error occurs or an hci capture has already been started.