Rename ttn_join()

This commit is contained in:
Manuel Bl
2021-09-28 10:14:32 +02:00
parent 7df10bd6bc
commit ee91ccc613
4 changed files with 68 additions and 15 deletions

View File

@ -520,7 +520,9 @@ void hal_esp32_stop_lmic_task(void)
gpio_isr_handler_remove(pin_dio0);
gpio_isr_handler_remove(pin_dio1);
disarm_timer();
set_next_alarm(0);
xTaskNotify(lmic_task, NOTIFY_BIT_STOP, eSetBits);
lmic_task = xTaskGetCurrentTaskHandle();
}

View File

@ -149,6 +149,11 @@ bool ttn_provision(const char *dev_eui, const char *app_eui, const char *app_key
return ttn_provisioning_save_keys();
}
bool ttn_provision_transiently(const char *dev_eui, const char *app_eui, const char *app_key)
{
return ttn_provisioning_decode_keys(dev_eui, app_eui, app_key);
}
bool ttn_provision_with_mac(const char *app_eui, const char *app_key)
{
if (!ttn_provisioning_from_mac(app_eui, app_key))
@ -188,7 +193,7 @@ void ttn_wait_for_provisioning(void)
#endif
}
bool ttn_join(const char *dev_eui, const char *app_eui, const char *app_key)
bool ttn_join_with_keys(const char *dev_eui, const char *app_eui, const char *app_key)
{
if (!ttn_provisioning_decode_keys(dev_eui, app_eui, app_key))
return false;
@ -196,7 +201,7 @@ bool ttn_join(const char *dev_eui, const char *app_eui, const char *app_key)
return join_core();
}
bool ttn_join_provisioned(void)
bool ttn_join(void)
{
if (!ttn_provisioning_have_keys())
{