|
Z-Wave Protocol Controller Reference
|
Internal helper functions used with Network Management. More...
Functions | |
| void | reset_nms_last_operation_data () |
| Resets all the variables sets in the nms struct. More... | |
| bool | we_are_alone_in_our_network () |
| Checks if we are alone in our network and returns true if so. More... | |
| bool | network_management_is_ready_for_a_new_operation () |
| Checks if all the conditions are fulfilled to start a new network management operation. (Set default operation excluded) More... | |
| void | network_management_refresh_cached_ids () |
| Asks the Z-Wave API to tell us our current HomeID and NodeID. More... | |
| void | network_management_refresh_cached_node_list () |
| Asks the Z-Wave API about the list of NodeIDs in our network. More... | |
| void | network_management_refresh_controller_capabilities_bitmask () |
| Asks the Z-Wave API to tell us what are the controller's capabilities in this network. More... | |
| void | network_management_refresh_network_information () |
| Quick helper function that will refresh all network information (HomeID, NodeID, Node list, controller capabilities) More... | |
| void | network_management_stop_ongoing_operations () |
| Makes sure that the Z-Wave API is not performing any network management operation. More... | |
| bool | is_command_class_in_nif (const zwave_command_class_t *nif, uint8_t nif_length, zwave_command_class_t command_class) |
| Verifies if a Command Class is part of of NIF's command class list. More... | |
| bool | we_should_self_destruct () |
| Looks at the state of network S2 bootstrapping after being SmartStart included and decides if we should reset and leave the network. More... | |
| void | network_management_take_sis_role_if_no_suc_in_network () |
| Attempts to take the SUC/SIS Role, if there is no SUC in the network. More... | |
Internal helper functions used with Network Management.
Internal helper functions used with Network Management
| bool is_command_class_in_nif | ( | const zwave_command_class_t * | nif, |
| uint8_t | nif_length, | ||
| zwave_command_class_t | command_class | ||
| ) |
Verifies if a Command Class is part of of NIF's command class list.
| nif | Pointer to a Z-Wave Command Class array |
| nif_length | The number of elements in the NIF pointer |
| command_class | The command class to search for. |
| bool network_management_is_ready_for_a_new_operation | ( | ) |
Checks if all the conditions are fulfilled to start a new network management operation. (Set default operation excluded)
We will check that we are not already doing something and that for example the Z-Wave Controller is not resetting.
| void network_management_refresh_cached_ids | ( | ) |
Asks the Z-Wave API to tell us our current HomeID and NodeID.
NOTE: Should be used only when necessary, as communicating with the Z-Wave API is slow and blocking.
| void network_management_refresh_cached_node_list | ( | ) |
Asks the Z-Wave API about the list of NodeIDs in our network.
NOTE: Should be used only when necessary, as communicating with the Z-Wave API is slow and blocking.
| void network_management_refresh_controller_capabilities_bitmask | ( | ) |
Asks the Z-Wave API to tell us what are the controller's capabilities in this network.
NOTE: Should be used only when necessary, as communicating with the Z-Wave API is slow and blocking.
| void network_management_refresh_network_information | ( | ) |
Quick helper function that will refresh all network information (HomeID, NodeID, Node list, controller capabilities)
NOTE: Should be used only when necessary, as communicating with the Z-Wave API is slow and blocking.
| void network_management_stop_ongoing_operations | ( | ) |
Makes sure that the Z-Wave API is not performing any network management operation.
| void network_management_take_sis_role_if_no_suc_in_network | ( | ) |
Attempts to take the SUC/SIS Role, if there is no SUC in the network.
| void reset_nms_last_operation_data | ( | ) |
Resets all the variables sets in the nms struct.
Use this when returning to IDLE or when swapping between Network Management Operations not to read data set by a previous operation.
| bool we_are_alone_in_our_network | ( | ) |
Checks if we are alone in our network and returns true if so.
| bool we_should_self_destruct | ( | ) |
Looks at the state of network S2 bootstrapping after being SmartStart included and decides if we should reset and leave the network.