Can wait for network to finish boot

This commit is contained in:
2024-08-17 17:40:14 +02:00
parent f60f6f6ccc
commit 59ba55793e
3 changed files with 39 additions and 3 deletions

@ -45,13 +45,14 @@ void app_main(void)
ESP_LOGI(TAG, "Initialize network\n");
ethernet_init();
ethernet_wait_for_network();
ESP_LOGI(TAG, "Check secure origin\n");
char *sec_orig = unsecure_api_get_secure_origin();
assert(sec_orig != NULL);
printf("Res = %s\n", sec_orig);
system_sleep(20);
system_sleep(120);
reboot();
}