ESP32 + W5500
Napsal: 29 pro 2020, 07:51
Ahoj, jeden problém úspěšně zvládnu a další se vyklube. Teď se tu trápím s ETH modulem W5500 Lite. Respektive s kompilací.
Ide mi vyhazuje při kompilaci základního dema hlášku
cannot declare variable 'client' to be of abstract type 'EthernetClient'
Už jste se s tím někdo setkal? Používáte někdo tento modul s ESP32?
In file included from d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/Ethernet2.h:17:0,
from d:\Disk Google\arduino - projekty\libraries\Ethernet2\examples\DhcpAddressPrinter\DhcpAddressPrinter.ino:18:
d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/EthernetServer.h:15:3: error: invalid abstract return type 'EthernetClient'
EthernetClient available();
^
In file included from d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/Ethernet2.h:16:0,
from d:\Disk Google\arduino - projekty\libraries\Ethernet2\examples\DhcpAddressPrinter\DhcpAddressPrinter.ino:18:
d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/EthernetClient.h:8:7: note: because the following virtual functions are pure within 'EthernetClient':
class EthernetClient : public Client {
^
In file included from D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Arduino.h:151:0,
from C:\Users\PRACOV~1.PC-\AppData\Local\Temp\arduino_build_304181\sketch\DhcpAddressPrinter.ino.cpp:1:
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:29:17: note: virtual int Client::connect()
virtual int connect() =0;
^
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:32:17: note: virtual int Client::connect(IPAddress, uint16_t, int)
virtual int connect(IPAddress ip, uint16_t port, int timeout) =0;
^
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:33:17: note: virtual int Client::connect(const char*, uint16_t, int)
virtual int connect(const char *host, uint16_t port, int timeout) =0;
^
DhcpAddressPrinter:29:16: error: cannot declare variable 'client' to be of abstract type 'EthernetClient'
EthernetClient client;
^
Použití knihovny SPI ve verzi 1.0 v adresáři: D:\Disk Google\arduino - projekty\hardware\espressif\esp32\libraries\SPI
Použití knihovny Ethernet2 ve verzi 1.0.4 v adresáři: d:\Disk Google\arduino - projekty\libraries\Ethernet2
exit status 1
cannot declare variable 'client' to be of abstract type 'EthernetClient'
Ide mi vyhazuje při kompilaci základního dema hlášku
cannot declare variable 'client' to be of abstract type 'EthernetClient'
Už jste se s tím někdo setkal? Používáte někdo tento modul s ESP32?
In file included from d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/Ethernet2.h:17:0,
from d:\Disk Google\arduino - projekty\libraries\Ethernet2\examples\DhcpAddressPrinter\DhcpAddressPrinter.ino:18:
d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/EthernetServer.h:15:3: error: invalid abstract return type 'EthernetClient'
EthernetClient available();
^
In file included from d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/Ethernet2.h:16:0,
from d:\Disk Google\arduino - projekty\libraries\Ethernet2\examples\DhcpAddressPrinter\DhcpAddressPrinter.ino:18:
d:\Disk Google\arduino - projekty\libraries\Ethernet2\src/EthernetClient.h:8:7: note: because the following virtual functions are pure within 'EthernetClient':
class EthernetClient : public Client {
^
In file included from D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Arduino.h:151:0,
from C:\Users\PRACOV~1.PC-\AppData\Local\Temp\arduino_build_304181\sketch\DhcpAddressPrinter.ino.cpp:1:
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:29:17: note: virtual int Client::connect()
virtual int connect() =0;
^
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:32:17: note: virtual int Client::connect(IPAddress, uint16_t, int)
virtual int connect(IPAddress ip, uint16_t port, int timeout) =0;
^
D:\Disk Google\arduino - projekty\hardware\espressif\esp32\cores\esp32/Client.h:33:17: note: virtual int Client::connect(const char*, uint16_t, int)
virtual int connect(const char *host, uint16_t port, int timeout) =0;
^
DhcpAddressPrinter:29:16: error: cannot declare variable 'client' to be of abstract type 'EthernetClient'
EthernetClient client;
^
Použití knihovny SPI ve verzi 1.0 v adresáři: D:\Disk Google\arduino - projekty\hardware\espressif\esp32\libraries\SPI
Použití knihovny Ethernet2 ve verzi 1.0.4 v adresáři: d:\Disk Google\arduino - projekty\libraries\Ethernet2
exit status 1
cannot declare variable 'client' to be of abstract type 'EthernetClient'