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