Z-Wave Protocol Controller Reference
zwave_s2_network_callbacks Struct Reference

#include <zwave_s2_network.h>

Collaboration diagram for zwave_s2_network_callbacks:

Public Attributes

void(* on_inclusion_started )()
 
void(* on_inclusion_complete )(zwave_keyset_t granted_keys, zwave_kex_fail_type_t kex_fail_code)
 
void(* on_keys_request )(zwave_keyset_t requested_keys, bool csa)
 
void(* on_dsk_challenge )(zwave_keyset_t granted_keys, int num_blank_bytes, zwave_dsk_t dsk)
 

Member Data Documentation

◆ on_dsk_challenge

void(* zwave_s2_network_callbacks::on_dsk_challenge) (zwave_keyset_t granted_keys, int num_blank_bytes, zwave_dsk_t dsk)

This event is trigged when a node has sent its public key for verification by the controller. A zwave_s2_dsk_accept must be called in response to this. See zwave_s2_dsk_accept S2_NODE_INCLUSION_PUBLIC_KEY_CHALLENGE_EVENT

Parameters
granted_keysSecurity keys granted earlier in inclusion process.
num_blank_bytesNumber of bytes which has been blanked out in the DSK
dskDSK of the joining/including node with the first num_blank_bytes bytes set to zero.

◆ on_inclusion_complete

void(* zwave_s2_network_callbacks::on_inclusion_complete) (zwave_keyset_t granted_keys, zwave_kex_fail_type_t kex_fail_code)

Inclusion S2 complete event.

Parameters
granted_kyesSet of keys which has been granted.
kex_fail_codeFailure code of the inclusion a successful inclusion will have KEX_FAIL_NONE

◆ on_inclusion_started

void(* zwave_s2_network_callbacks::on_inclusion_started) ()

This event is triggered when the S2 inclusion process has started This can be use to stop e.g.,the S0 inclusion FSM.

◆ on_keys_request

void(* zwave_s2_network_callbacks::on_keys_request) (zwave_keyset_t requested_keys, bool csa)

This event is trigged after a zwave_s2_start_add_node when the node request its keys. A zwave_s2_key_grant must be called in response to this. S2_NODE_INCLUSION_KEX_REPORT_EVENT

Parameters
requested_keysKeys which the nodes has requested.
csaTrue if the node has requested client side authentication.

The documentation for this struct was generated from the following file: