Submit CSR to server

This commit is contained in:
2024-08-23 23:06:14 +02:00
parent 3b7e2f9a0c
commit d890b23670
4 changed files with 130 additions and 7 deletions

@ -126,11 +126,14 @@ void app_main(void)
// TODO : remove certificate if present
// Enroll device
ESP_LOGI(TAG, "Enroll device");
if (secure_api_enroll_device() != 0)
{
ESP_LOGE(TAG, "Failed to enroll device!");
reboot();
}
ESP_LOGI(TAG, "Requested device enrollment.");
break;
}