Wirepas SDK
|
Go to the source code of this file.
Functions | |
__STATIC_INLINE app_res_e | configureNode (app_addr_t my_addr, app_lib_settings_net_addr_t my_network_addr, app_lib_settings_net_channel_t my_network_ch, const uint8_t *my_authentication_key_p, const uint8_t *my_encryption_key_p) |
Helper function to initially setup a node if not already configured. This configuration can be modified later with remote API. More... | |
__STATIC_INLINE app_addr_t | getUniqueAddress () |
Helper function to generate a unique unicast address. More... | |
__STATIC_INLINE app_res_e | OverrideNodeConfig (app_addr_t new_addr, app_lib_settings_role_t new_role, app_lib_settings_net_addr_t new_network_addr, app_lib_settings_net_channel_t new_network_ch) |
Helper function to apply new configuration on a node. Will override old configuration. More... | |
__STATIC_INLINE app_res_e | configureNodeFromBuildParameters () |
Wrapper on top of configureNode to get parameters from build system and hardcoded values from chip (for unique node address) The value must be defined in app confik.mk file at build time. More... | |
Variables | |
const uint8_t * | authen_key_p |
const uint8_t * | cipher_key_p |
__STATIC_INLINE app_res_e configureNode | ( | app_addr_t | my_addr, |
app_lib_settings_net_addr_t | my_network_addr, | ||
app_lib_settings_net_channel_t | my_network_ch, | ||
const uint8_t * | my_authentication_key_p, | ||
const uint8_t * | my_encryption_key_p | ||
) |
Helper function to initially setup a node if not already configured. This configuration can be modified later with remote API.
Example on use. Address, network address and channel is set if they are not yet set:
my_addr | Node Address to set if not present |
my_network_addr | Network address to set if not present |
my_network_ch | Network channel to set if not present |
my_authentication_key_p | Authentication key to set if not present. If NULL, it is not set. |
my_encryption_key_p | Encryption key to set if not present. If NULL, it is not set. |
Definition at line 63 of file node_configuration.h.
__STATIC_INLINE app_res_e configureNodeFromBuildParameters | ( | ) |
Wrapper on top of configureNode to get parameters from build system and hardcoded values from chip (for unique node address) The value must be defined in app confik.mk file at build time.
Definition at line 223 of file node_configuration.h.
__STATIC_INLINE app_addr_t getUniqueAddress | ( | ) |
Helper function to generate a unique unicast address.
Definition at line 139 of file node_configuration.h.
__STATIC_INLINE app_res_e OverrideNodeConfig | ( | app_addr_t | new_addr, |
app_lib_settings_role_t | new_role, | ||
app_lib_settings_net_addr_t | new_network_addr, | ||
app_lib_settings_net_channel_t | new_network_ch | ||
) |
Helper function to apply new configuration on a node. Will override old configuration.
new_addr | Node Address to set |
new_role | Node Role to set |
new_network_addr | Network address to set |
new_network_ch | Network channel to set |
Definition at line 172 of file node_configuration.h.
const uint8_t* authen_key_p |
const uint8_t* cipher_key_p |