nRF5 SDK v17.1.0
Data Structures | Macros | Functions
DFU BLE Service

Device Firmware Update (DFU) transport layer for Bluetooth low energy. More...

Data Structures

struct  ble_dfu_t
 DFU Service. More...
 

Macros

#define BLE_DFU_SERVICE_UUID   0xFE59
 UUID of the DFU Service.
 
#define BLE_DFU_CTRL_PT_UUID   0x0001
 UUID of the DFU Control Point.
 
#define BLE_DFU_PKT_CHAR_UUID   0x0002
 UUID of the DFU Packet Characteristic.
 

Functions

uint32_t ble_dfu_transport_init (nrf_dfu_observer_t observer)
 Function for initializing the BLE transport. More...
 
uint32_t ble_dfu_transport_close (nrf_dfu_transport_t const *p_exception)
 Function for closing the BLE transport. More...
 
uint32_t ble_dfu_transport_disconnect (void)
 Function for disconnecting from the BLE peer and starting advertising. More...
 

Detailed Description

Device Firmware Update (DFU) transport layer for Bluetooth low energy.

The Device Firmware Update (DFU) Service is a GATT-based service that can be used for performing firmware updates over BLE. Note that this implementation uses vendor-specific UUIDs for the service and characteristics, and is intended to demonstrate firmware updates over BLE. See DFU Transport: BLE for more information on the service and the profile.

Function Documentation

uint32_t ble_dfu_transport_close ( nrf_dfu_transport_t const *  p_exception)

Function for closing the BLE transport.

This function disconnects and disables the SoftDevice.

Parameters
[in]p_exceptionOptional exception. If the exception refers to this transport, this function will do nothing. Can be NULL to signify no exception.
Return values
NRF_SUCCESSIf successful.
Returns
Error code from sub-call on error.
uint32_t ble_dfu_transport_disconnect ( void  )

Function for disconnecting from the BLE peer and starting advertising.

Return values
NRF_SUCCESSIf successful.
Returns
Error code from sub-call on error.
uint32_t ble_dfu_transport_init ( nrf_dfu_observer_t  observer)

Function for initializing the BLE transport.

Parameters
[in]observerCallback function for receiving notifications from the BLE transport.
Return values
NRF_SUCCESSIf successful.
Returns
Error code from sub-call on error.

Documentation feedback | Developer Zone | Subscribe | Updated