38 #ifndef CONFIG_CLIENT_H__ 39 #define CONFIG_CLIENT_H__ 42 #include "config_messages.h" 43 #include "config_opcodes.h" 46 #include "device_state_manager.h" 57 #ifndef CONFIG_CLIENT_ACKED_TRANSACTION_TIMEOUT 58 #define CONFIG_CLIENT_ACKED_TRANSACTION_TIMEOUT (SEC_TO_US(60)) 96 CONFIG_CLIENT_EVENT_TYPE_TIMEOUT,
97 CONFIG_CLIENT_EVENT_TYPE_CANCELLED,
98 CONFIG_CLIENT_EVENT_TYPE_MSG
uint32_t config_client_appkey_add(uint16_t netkey_index, uint16_t appkey_index, const uint8_t *p_appkey)
Sends an application key add request.
Message format for the AppKey Status message.
uint32_t config_client_model_publication_get(uint16_t element_address, access_model_id_t model_id)
Sends a publication get request.
Message format for the Model App Status message.
uint8_t retransmit_interval
Retransmit interval (in multiples of 50 ms).
Message format for the Friend Status message.
config_gatt_proxy_state_t
Possible values for the GATT Proxy state.
config_net_beacon_state_t
Possible values for the network beacon state.
uint32_t config_client_init(config_client_event_cb_t event_cb)
Initializes the configuration client.
nrf_mesh_address_t publish_address
Publish address.
uint32_t config_client_model_subscription_delete_all(uint16_t element_address, access_model_id_t model_id)
Sends a subscription delete all request.
config_friend_state_t
Possible values for the Friend state.
uint32_t config_client_model_app_bind(uint16_t element_address, uint16_t appkey_index, access_model_id_t model_id)
Sends a application bind request.
uint32_t config_client_net_beacon_get(void)
Sends a secure network beacon state get request.
uint32_t config_client_server_set(dsm_handle_t server_devkey_handle, dsm_handle_t server_address_handle)
Sets the configuration server to configure.
uint32_t config_client_model_subscription_add(uint16_t element_address, nrf_mesh_address_t address, access_model_id_t model_id)
Sends a subscription add request.
Message format for the Model Subscription Status message.
uint32_t config_client_netkey_update(uint16_t netkey_index, const uint8_t *p_netkey)
Sends a network key update request.
uint16_t dsm_handle_t
DSM handle type, used for the handles returned for the each set of data added.
uint16_t element_address
Element address of the model to set the publication state.
uint32_t config_client_node_identity_get(uint16_t netkey_index)
Gets the current Node Identity state of a node.
Union of possible status message responses.
uint32_t config_client_relay_set(config_relay_state_t relay_state, uint8_t retransmit_count, uint8_t retransmit_interval_steps)
Sends a relay state set request.
uint32_t config_client_model_subscription_delete(uint16_t element_address, nrf_mesh_address_t address, access_model_id_t model_id)
Sends a subscription delete request.
uint32_t config_client_netkey_delete(uint16_t netkey_index)
Sends a network key delete request.
uint32_t config_client_heartbeat_publication_set(const config_msg_heartbeat_publication_set_t *p_publication)
Sets the heartbeat publication state value of a node.
Message format for the Relay Status message.
uint32_t config_client_default_ttl_get(void)
Sends a default TTL get request.
config_identity_state_t
Possible values for the identity state.
Message format for the Heartbeat Subscription Status message.
Message format for the Node Identity Status message.
uint32_t config_client_relay_get(void)
Sends a relay state get request.
uint32_t config_client_gatt_proxy_get(void)
Gets the current GATT Proxy state of a node.
Configuration client event structure.
config_opcode_t
Configuration model opcodes.
Message format for the GATT Proxy Status message.
uint32_t config_client_network_transmit_get(void)
Sends a network transmit get request.
uint32_t config_client_node_identity_set(uint16_t netkey_index, config_identity_state_t state)
Sets the current Node Identity state of a node.
uint32_t config_client_model_subscription_get(uint16_t element_address, access_model_id_t model_id)
Sends a subscription get request.
uint32_t config_client_key_refresh_phase_set(uint16_t netkey_index, nrf_mesh_key_refresh_phase_t phase)
Sets the current key refresh phase of a node.
Publication state parameter structure.
Message format for the Vendor Model App List message.
void config_client_pending_msg_cancel(void)
Cancel any ongoing reliable message transfer.
access_model_id_t model_id
Model identifier.
uint32_t config_client_appkey_delete(uint16_t netkey_index, uint16_t appkey_index)
Sends an application key delete request.
uint32_t config_client_appkey_update(uint16_t netkey_index, uint16_t appkey_index, const uint8_t *p_appkey)
Sends an application key update request.
uint32_t config_client_heartbeat_publication_get(void)
Gets the heartbeat publication state value of a node.
uint32_t config_client_heartbeat_subscription_get(void)
Gets the heartbeat subscription state value of a node.
uint32_t config_client_server_bind(dsm_handle_t server_devkey_handle)
Binds the configuration client to a server.
const config_msg_t * p_msg
Pointer to message structure.
uint32_t config_client_gatt_proxy_set(config_gatt_proxy_state_t state)
Sets the GATT Proxy state of a node.
uint32_t config_client_net_beacon_set(config_net_beacon_state_t state)
Sends a secure network beacon state set request.
uint32_t config_client_friend_get(void)
Gets the current Friend state of a node.
Message format for the Key Refresh Phase Status message.
uint32_t config_client_netkey_add(uint16_t netkey_index, const uint8_t *p_netkey)
Sends a network key add request.
uint32_t config_client_model_app_get(uint16_t element_address, access_model_id_t model_id)
Sends an application get request.
uint16_t appkey_index
Application key index.
config_relay_state_t
Values for the relay state.
uint32_t config_client_model_subscription_overwrite(uint16_t element_address, nrf_mesh_address_t address, access_model_id_t model_id)
Sends a subscription overwrite request.
Message format for the Config Beacon Status message.
uint32_t config_client_heartbeat_subscription_set(const config_msg_heartbeat_subscription_set_t *p_subscription)
Sets the heartbeat subscription state value of a node.
Message format for the Heartbeat Publication Status message.
Message format for the SIG Model App List message.
nrf_mesh_key_refresh_phase_t
Key refresh phase.
uint32_t config_client_default_ttl_set(uint8_t ttl)
Sends a default TTL set request.
uint32_t config_client_netkey_get(void)
Sends a network key(s) get request.
uint32_t config_client_model_publication_set(const config_publication_state_t *p_publication_state)
Sends a model publication set request.
Message format for the Model Publication Status message.
uint32_t config_client_network_transmit_set(uint8_t transmit_count, uint8_t transmit_interval_steps)
Sends a network transmit set request.
Message format for the Composition Data Status message.
config_client_event_type_t
Configuration client event types.
Message format for the Heartbeat Publication Set message.
uint32_t config_client_key_refresh_phase_get(uint16_t netkey_index)
Gets the current key refresh phase of a node.
void(* config_client_event_cb_t)(config_client_event_type_t event_type, const config_client_event_t *p_event, uint16_t length)
Configuration client event callback type.
Model publish period structure.
Message format for the Heartbeat Subscription Set message.
uint8_t publish_ttl
Publish TTL value.
uint32_t config_client_composition_data_get(uint8_t page_number)
Sends a composition data GET request.
uint32_t config_client_appkey_get(uint16_t netkey_index)
Sends an application key(s) get request.
Message format for the Vendor Model Subscription List message.
uint32_t config_client_friend_set(config_friend_state_t state)
Sets the Friend state of a node.
config_opcode_t opcode
Opcode of the status reply.
bool frendship_credential_flag
Set true to use friendship credentials for publishing.
Message format for the AppKey List message.
uint8_t retransmit_count
Retransmit count.
Message format for the Default TTL Status message.
Message format for the Network Key Status message.
uint32_t config_client_model_app_unbind(uint16_t element_address, uint16_t appkey_index, access_model_id_t model_id)
Sends a application unbind request.
access_publish_period_t publish_period
Publish period.
Message format for the SIG Model Subscription List message.
uint32_t config_client_node_reset(void)
Sends a node reset request.
uint32_t config_client_low_power_node_polltimeout_get(uint16_t lpn_address)
Gets the current value of the PollTimeout timer of the Low Power node.