From b374b5a260877b0f887c282c4150a803bff4a035 Mon Sep 17 00:00:00 2001 From: DashyFox Date: Tue, 29 Oct 2024 16:59:54 +0300 Subject: [PATCH] docs --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3be4b5e..e700edc 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ ```cpp class EthernetClient : public Client { - // ... protected: // <--- замените 'private' на 'protected' static uint16_t _srcport; uint8_t _sock; @@ -32,12 +31,11 @@ protected: // <--- замените 'private' на 'protected' В файле `EthernetServer.h` также замените доступ к переменным с `private` на `protected`: ```cpp -class EthernetServer : -public Server { +class EthernetServer : public Server { protected: // <--- замените 'private' на 'protected' uint16_t _port; void accept(); -//... + //... }; ``` @@ -52,10 +50,9 @@ void setup() { // ... Ethernet.setCsPin(W5500_CS_PIN); Ethernet.init(); - Ethernet.begin(mac, localIP, gateway, gateway, subnet); + Ethernet.begin(mac, localIP, subnet, gateway, gateway); // ... } ``` Не забудьте правильно настроить `W5500_CS_PIN` и сетевые параметры (`mac`, `localIP`, `gateway`, `subnet`) в зависимости от вашей конфигурации. -``` \ No newline at end of file