Can wait for network to finish boot
This commit is contained in:
esp32_device/main
@ -4,6 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "stdbool.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
@ -15,9 +17,14 @@ extern "C"
|
||||
void ethernet_init();
|
||||
|
||||
/**
|
||||
* De-initialize Ethernet connection
|
||||
* Check if Ethernet connection is ready or not
|
||||
*/
|
||||
void ethernet_deinit();
|
||||
bool ethernet_is_ready();
|
||||
|
||||
/**
|
||||
* Wait for network connection to become ready
|
||||
*/
|
||||
void ethernet_wait_for_network();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user