#define DEBUG_LOG_MODULE_NAME "PROXY APP"
#define DEBUG_LOG_MAX_LEVEL LVL_INFO
#define JOINING_TX_POWER 8
#define ENABLE_LOCAL_PROVISIONING true
static const uint8_t authentication_key[] = {NET_AUTHEN_KEY};
static const uint8_t encryption_key[] = {NET_CIPHER_KEY};
static bool beacon_tx_enabled = false;
{
(void)button_id;
(void)event;
if (beacon_tx_enabled)
{
beacon_tx_enabled = false;
}
else
{
beacon_tx_enabled = true;
}
}
bool start_cb(const uint8_t * p_uid,
uint8_t uid_len,
{
(void) p_uid;
(void) uid_len;
LOG(
LVL_INFO,
"Provisioning request - Method: %d", method);
{
if (prov_uid!= NULL && uid_len > 0)
{
LOG(
LVL_INFO,
" Authenticator UID Type: %d", prov_uid->authenticator_uid_type);
LOG(
LVL_INFO,
" Node UID Type: %d", prov_uid->node_uid_type);
}
}
else if (p_uid != NULL && uid_len > 0)
{
if (prov_uid != NULL && uid_len > 0)
{
}
}
authentication_key,
LOG(
LVL_INFO,
"Accepting node - sending network config");
return true;
}
{
(void) functions;
static const uint8_t factory_key[] = {
0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9,
0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9,
0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9,
0xd1, 0xd2, 0xd3, 0xd4, 0xd5
};
static const uint32_t id = 0x12345678;
{
.payload = (uint8_t *)&id,
.num_bytes = sizeof(id),
.is_local_sec_allowed = ENABLE_LOCAL_PROVISIONING,
.is_local_unsec_allowed = ENABLE_LOCAL_PROVISIONING,
.key = factory_key,
.key_len = 32,
.start_cb = start_cb
};
{
return;
}
#ifdef LOW_LATENCY_NODE
#else
#endif
lib_state->startStack();
}