void net_config_setup() { wifi.begin(static_ip, static_gw, static_nm, dns); discovery_now(); if( WiFi.SSID().length() == 0) { sleep_lock(); // We have no network configuration, do not go to sleep, this lock will release on reboot } }
int sys_sleep_lock(void) { sleep_lock(); return 0; }