Hello @dsrc12
you are correct, the GPIOs for Serial2 in the M5Stack (M5Core) examples are incorrect. It should be 16/17 as you already figured out yourself. I've created a pull-request which corrects the three M5Stack (M5Core) examples.
To get past wait ethernet connect multiple conditions need to be met:
a) the network needs to have a DHCP server
b) the IP address range needs to be 192.168.x.x
c) the DHCP server needs to be compatible with ESPoE Unit
re b) in case your network doesn't use 192.168.x.x you can modify it in this function
bool Unit_PoESP32::checkETHConnect() {
sendCMD("AT+CIPETH?");
_readstr = waitMsg(1000);
if (_readstr.indexOf("192") != -1) {
return true;
} else {
return false;
}
}
Thanks
Felix