#include <stdlib.h>
#ifdef DUALMCU_APP_KEY_MGMT
#endif
#ifndef DUALMCU_APP_KEY_MGMT
#endif
#ifdef DUALMCU_APP_KEY_MGMT
{
}
static const app_lib_joining_received_beacon_t *
prov_beacon_joining_cb(
const app_lib_joining_received_beacon_t * const beacons)
{
const app_lib_joining_received_beacon_t * selected_beacon = beacons;
const app_lib_joining_received_beacon_t * current_beacon = beacons;
while ((current_beacon = current_beacon->next) != NULL)
{
if (current_beacon->rssi > selected_beacon->rssi)
{
selected_beacon = current_beacon;
}
}
return selected_beacon;
}
#endif
{
(void) functions;
#ifdef DUALMCU_APP_KEY_MGMT
if (lib_settings->getNodeRole(&role) ==
APP_RES_OK)
{
{
lib_settings->keyManagementConfiguration(
.flags = {
.apply_flags = 1,
.app_key_management_supported = 1,
.app_key_management_configured = 1
}
}
);
}
else
{
.end_cb = prov_end_cb,
.beacon_joining_cb = prov_beacon_joining_cb
});
}
}
#else
#endif
}