Generate device EUI from MAC

This commit is contained in:
Manuel Bleichenbacher
2018-09-17 22:50:15 +02:00
parent 5cd2c7bac4
commit 302509d096
8 changed files with 184 additions and 4 deletions

View File

@ -86,6 +86,14 @@ bool TheThingsNetwork::provision(const char *devEui, const char *appEui, const c
return provisioning_save_keys();
}
bool TheThingsNetwork::provisionWithMAC(const char *appEui, const char *appKey)
{
if (!provisioning_from_mac(appEui, appKey))
return false;
return provisioning_save_keys();
}
void TheThingsNetwork::startProvisioningTask()
{
#if !defined(CONFIG_TTN_PROVISION_UART_NONE)