nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches

◆ bt_dfu_smp_command()

int bt_dfu_smp_command ( struct bt_dfu_smp * dfu_smp,
bt_dfu_smp_rsp_part_cb rsp_cb,
size_t cmd_size,
const void * cmd_data )

#include <dfu_smp.h>

Execute a command.

A command larger than the usable ATT payload is split into several consecutive GATT Write Without Response PDUs. The peer reassembles them into a single SMP request, which requires

CONFIG_MCUMGR_TRANSPORT_BT_REASSEMBLY 

to be enabled on the target. One SMP response is still expected per command.

Parameters
[in,out]dfu_smpDFU SMP Client instance.
[in]rsp_cbCallback function to process the response.
[in]cmd_sizeSize of the command data buffer.
[in]cmd_dataData buffer.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.