Skip to content

Commit e452805

Browse files
add esp32 support
1 parent 41cc163 commit e452805

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Ethernet.h

+6
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ class EthernetServer : public Server {
259259
EthernetClient available();
260260
EthernetClient accept();
261261
virtual void begin();
262+
#ifdef ESP32
263+
void begin(uint16_t port)
264+
{
265+
_port = port;
266+
}
267+
#endif
262268
virtual size_t write(uint8_t);
263269
virtual size_t write(const uint8_t *buf, size_t size);
264270
virtual operator bool();

0 commit comments

Comments
 (0)