Provision Callback

group Provision_Callback

Callback types used for provisioning procedure.

Typedefs

typedef struct _prov_ctx_t *prov_ctx_p
typedef bool (*prov_cb_pf)(prov_cb_type_t cb_type, prov_cb_data_t cb_data)
typedef bool (*prov_send_t)(prov_ctx_p pprov_ctx, uint8_t *pdata, uint16_t len)
typedef struct _prov_ctx_t prov_ctx_t

Enums

enum prov_cb_type_t

Values:

enumerator PROV_CB_TYPE_UNPROV

notified when the stack is ready

enumerator PROV_CB_TYPE_START

used by device

enumerator PROV_CB_TYPE_PATH_CHOOSE

used by provisioner

enumerator PROV_CB_TYPE_PUBLIC_KEY
enumerator PROV_CB_TYPE_AUTH_DATA
enumerator PROV_CB_TYPE_RANDOM
enumerator PROV_CB_TYPE_COMPLETE

only notified in the prov procedure

enumerator PROV_CB_TYPE_FAIL
enumerator PROV_CB_TYPE_PROV

added to notify the stack is ready

enum prov_cb_fail_type_t

Values:

enumerator PROV_CB_FAIL_TYPE_BEARER_LOSS

pb-adv link close & le link disconnect

enumerator PROV_CB_FAIL_TYPE_BEARER_TIMEOUT

pb-adv transaction timeout MESH_PB_GENERIC_TIMEOUT_PERIOD

enumerator PROV_CB_FAIL_TYPE_BEARER_IDLE

pb-adv link idle timeout MESH_PB_ADV_LINK_IDLE_TIMEOUT

enumerator PROV_CB_FAIL_TYPE_PROCEDURE_TIMEOUT

prov procedure timeout MESH_PROV_TIMEOUT_PERIOD

enumerator PROV_CB_FAIL_TYPE_PROCEDURE_ABNORMAL

prov procedure fail prov_result_t

struct prov_cb_fail_t
#include <mesh_provision.h>

Public Members

prov_cb_fail_type_t fail_type
bearer_type_t bearer_type
prov_result_t prov_result
union prov_cb_fail_t
struct prov_cb_data_t
#include <mesh_provision.h>

little endian interfaced with app

Public Members

prov_generic_cb_type_t pb_generic_cb_type

used in PROV_CB_TYPE_PB_ADV_LINK_STATE

prov_capabilities_t *pprov_capabilities

used in PROV_CB_TYPE_PATH_CHOOSE by provisioner

prov_start_t *pprov_start

used in PROV_CB_TYPE_AUTH_DATA by device

prov_data_t *pprov_data

used in PROV_CB_TYPE_COMPLETE

prov_random_t *pprov_random

used in PROV_CB_TYPE_RANDOM by device and provisioner

prov_cb_fail_t prov_fail

used in PROV_CB_TYPE_FAIL

union prov_cb_data_t
prov_bearer_t bearer
struct _prov_ctx_t
#include <mesh_provision.h>

Public Members

prov_pdu_type_t fsm
bool fsm_flag

TRUE: tx, False: Rx. Assisting to determine the FSM when there is ambiguity tx/rx the same msgs.

prov_capabilities_t prov_cap
prov_cb_pf pf_prov_cb
plt_timer_t timer
prov_ctx_tmp_p pctx_tmp
prov_send_t prov_send
prov_bearer_t bearer
bool random_set