37 #ifndef PB_REMOTE_CLIENT_H__ 38 #define PB_REMOTE_CLIENT_H__ 42 #include "access_reliable.h" 43 #include "nrf_mesh_prov.h" 60 #define PB_REMOTE_CLIENT_MODEL_ID (0x8004) 63 #ifndef PB_REMOTE_CLIENT_ACKED_TRANSACTION_TIMEOUT 64 #define PB_REMOTE_CLIENT_ACKED_TRANSACTION_TIMEOUT (SEC_TO_US(60)) 129 PB_REMOTE_CLIENT_STATE_WAIT_ACK_LINK,
130 PB_REMOTE_CLIENT_STATE_WAIT_ACK_TRANSFER,
131 PB_REMOTE_CLIENT_STATE_WAIT_ACK_SCAN,
170 uint16_t element_index,
The remote link was closed.
uint16_t access_model_handle_t
Access layer handle type.
Received a remote UUID from the server.
pb_remote_event_type_t
Remote provisioning client event types.
pb_remote_event_type_t type
Event type.
The remote could not open link.
The remote could not close the link.
const uint8_t * p_uuid
The NRF_MESH_UUID_SIZE byte long UUID of the unprovisioned device.
The remote got a link close command for an inactive link.
access_model_handle_t model_handle
Model handle for the client.
uint32_t pb_remote_client_remote_scan_cancel(pb_remote_client_t *p_client)
Cancels the remote scanning procedure.
pb_remote_event_remote_uuid_t remote_uuid
Remote UUID parameters for the PB_REMOTE_EVENT_REMOTE_UUID event.
uint8_t device_id
ID of the unprovisioned device given by the server.
The remote could not cancel the scanning procedure.
Remote provisioning link is established.
uint8_t current_prov_pdu_type
Current Provisioning PDU Type.
Initialized and idle state.
access_reliable_t reliable
Access layer reliable message parameter structure.
void(* pb_remote_client_event_cb_t)(const pb_remote_event_t *p_evt)
Remote provisioning client event handler callback function.
uint32_t pb_remote_client_remote_scan_start(pb_remote_client_t *p_client)
Initiates the remote scanning procedure.
prov_bearer_t prov_bearer
Provisioning context structure pointer.
The remote has started scanning.
The unprovisioned device ID was not recognized by the server.
Access layer acknowledged publish parameter structure.
pb_remote_client_state_t
Remote Provisioning Client states.
Remote provisioning event structure.
Remote Provisioning Client context structure.
uint32_t pb_remote_client_init(pb_remote_client_t *p_client, uint16_t element_index, pb_remote_client_event_cb_t event_cb)
Initializes the Remote provisioning client model.
The remote has cancelled the scanning.
prov_bearer_t * pb_remote_client_bearer_interface_get(pb_remote_client_t *p_client)
Gets the remote Remote provisioning client's bearer interface.
The remote could not start the scanning procedure.
pb_remote_client_state_t state
Remote provisioning Client state.
pb_remote_client_event_cb_t event_cb
User event callback.
The session failed because of no response from the remote.