OpenSprinkler Forums OpenSprinkler Unified Firmware ESP32 port of 2.1.9 firmware Reply To: ESP32 port of 2.1.9 firmware

#75948

usydow
Participant

@V1pr
I have found a workaround!
There seems to be no WIFI connection, so the start of the web server goes nowhere.

DEBUG_PRINT(“ETH enabled: “);
DEBUG_PRINTLN(useEth);
DEBUG_PRINT(“Wifi mode: “);
DEBUG_PRINTLN(( get_wifi_mode() == WIFI_MODE_STA ) ? F(“STA”) : F(“AP”));
–> start_network_sta(“myssid”,”mypassword”);
// FIXME, just for testing
//::start_server_ap();
delay(500);
if((useEth || get_wifi_mode()==WIFI_MODE_STA) && otc.en>0 && otc.token.length()>=32) {
otf = new OTF::OpenThingsFramework(httpport, otc.server, otc.port, otc.token, false, ether_buffer, ETHER_BUFFER_SIZE);
DEBUG_PRINTLN(F(“Started OTF with remote connection”));