Submit CSR to server
This commit is contained in:
esp32_device/main
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user