Add ETHClass2 lib, board definition and ETH companion radio support

This commit is contained in:
Piero Andreini 2026-03-30 02:07:17 +02:00
parent de00cebbbb
commit e97d6849d2
6 changed files with 1364 additions and 7 deletions

View file

@ -2,10 +2,9 @@
#include <WiFi.h>
void SerialWifiInterface::begin(int port) {
// wifi setup is handled outside of this class, only starts the server
server.begin(port);
server = WiFiServer(port);
server.begin();
}
// ---------- public methods
void SerialWifiInterface::enable() {
if (_isEnabled) return;
@ -169,4 +168,5 @@ size_t SerialWifiInterface::checkRecvFrame(uint8_t dest[]) {
bool SerialWifiInterface::isConnected() const {
return deviceConnected; //pServer != NULL && pServer->getConnectedCount() > 0;
}
}