7 #ifndef NODECONFIGURATION_H_
8 #define NODECONFIGURATION_H_
67 const uint8_t * my_authentication_key_p,
68 const uint8_t * my_encryption_key_p)
74 if (lib_settings->getNodeAddress(&node_addr) !=
APP_RES_OK)
77 res = lib_settings->setNodeAddress(my_addr);
84 if (my_authentication_key_p != NULL
85 && lib_settings->getAuthenticationKey(NULL) !=
APP_RES_OK)
88 res = lib_settings->setAuthenticationKey(my_authentication_key_p);
96 if (my_encryption_key_p != NULL
97 && lib_settings->getEncryptionKey(NULL) !=
APP_RES_OK)
100 res = lib_settings->setEncryptionKey(my_encryption_key_p);
110 if (lib_settings->getNetworkAddress(&network_addr) !=
APP_RES_OK)
113 res = lib_settings->setNetworkAddress(my_network_addr);
122 if (lib_settings->getNetworkChannel(&network_ch) !=
APP_RES_OK)
125 res = lib_settings->setNetworkChannel(my_network_ch);
149 else if ((address & 0xFF000000) == 0x80000000)
152 address &= 0x7ffffffd;
163 address &= 0x7fffffff;
191 res = lib_settings->setNodeAddress(new_addr);
196 res = lib_settings->setNodeRole(new_role);
201 res = lib_settings->setNetworkAddress(new_network_addr);
206 res = lib_settings->setNetworkChannel(new_network_ch);
235 #if defined(NETWORK_ADDRESS) & defined(NETWORK_CHANNEL)