nRF5 SDK for Mesh v5.0.0
Functions
Provisioning serial handler (PB-ADV)

Functions

uint32_t serial_handler_prov_init (void)
 Initializes the serial provisioning interface. More...
 
void serial_handler_prov_pkt_in (const serial_packet_t *p_packet)
 Callback function for when a serial packet has been received. More...
 
uint32_t serial_handler_prov_context_get (uint8_t index, nrf_mesh_prov_ctx_t **pp_prov_ctx)
 Gets the provisioning context with the given index. More...
 
uint32_t serial_handler_prov_keys_get (const uint8_t **pp_public_key, const uint8_t **pp_private_key)
 Gets the pointers to the stored public and private keys. More...
 
uint32_t serial_handler_prov_oob_caps_get (const nrf_mesh_prov_oob_caps_t **pp_caps)
 Gets the Out-Of-Band capabilities. More...
 

Detailed Description

Function Documentation

◆ serial_handler_prov_init()

uint32_t serial_handler_prov_init ( void  )

Initializes the serial provisioning interface.

Return values
NRF_SUCCESSThe serial interface for provisioning was successfully initialized.
NRF_ERROR_INTERNALThe ECDH module failed to generate keys.

◆ serial_handler_prov_pkt_in()

void serial_handler_prov_pkt_in ( const serial_packet_t p_packet)

Callback function for when a serial packet has been received.

Parameters
p_packetPointer to the incoming serial packet.

◆ serial_handler_prov_context_get()

uint32_t serial_handler_prov_context_get ( uint8_t  index,
nrf_mesh_prov_ctx_t **  pp_prov_ctx 
)

Gets the provisioning context with the given index.

Parameters
[in]indexIndex of provisioning context.
[in,out]pp_prov_ctxPointer to provisioning context pointer.
Return values
NRF_SUCCESSSuccessfully returned provisioning context.
NRF_ERROR_NOT_FOUNDInvalid provisioning context index.

◆ serial_handler_prov_keys_get()

uint32_t serial_handler_prov_keys_get ( const uint8_t **  pp_public_key,
const uint8_t **  pp_private_key 
)

Gets the pointers to the stored public and private keys.

Parameters
[in,out]pp_public_keyPointer to store the public key pointer.
[in,out]pp_private_keyPointer to store the private key pointer.
Return values
NRF_SUCCESSSuccessfully returned the key pointers.

◆ serial_handler_prov_oob_caps_get()

uint32_t serial_handler_prov_oob_caps_get ( const nrf_mesh_prov_oob_caps_t **  pp_caps)

Gets the Out-Of-Band capabilities.

Parameters
[in,out]pp_capsPointer to OOB capabilities context pointer.
Return values
NRF_SUCCESSSuccessfully returned the OOB capabilities pointer.

Documentation feedback | Developer Zone | Subscribe | Updated