Probably you have to use Renzo Mischianti's PCF8574 library. Now the problem is the ETH.h library - which one to use? I have installed https://docs.arduino.cc/libraries/ethernet/ in newest version but I see that the esp32 library has its own ETH.h (so I uninstalled my) libraries. It says that constants should be defined, for example:
#ifndef ETH_PHY_TYPE
#define ETH_PHY_TYPE ETH_PHY_LAN8720
#define ETH_PHY_ADDR 0
#define ETH_PHY_MDC 23
#define ETH_PHY_MDIO 18
#define ETH_PHY_POWER -1
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
#endif
The compiler reports as follows:
#ifndef ETH_PHY_TYPE
#define ETH_PHY_TYPE ETH_PHY_LAN8720
#define ETH_PHY_ADDR 0
#define ETH_PHY_MDC 23
#define ETH_PHY_MDIO 18
#define ETH_PHY_POWER -1
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
#endif
The compiler reports as follows:
PHP Code:
C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.ino: In function 'void setup()': C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.ino:288:12: error: no matching function for call to 'ETHClass::begin(int, int)' 288 | ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from c:\Users\mkapski\Documents\Arduino\libraries\WebServer_WT32_ETH01\src/WebServer_WT32_ETH01.hpp:76, from c:\Users\mkapski\Documents\Arduino\libraries\WebServer_WT32_ETH0 1\src/WebServer_WT32_ETH01.h:72, from C:\Users\mkapski\Documents\Arduino\testy_kicony_v2_demo1\testy_kicony_v2_demo1.ino:23: C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:126:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)' 126 | bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
| ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:126:8: note: candidate expects 6 arguments, 2 provided C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hard ware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:129:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, SPIClass&, uint8_t)' 129 | bool begin(eth_phy_type_t type, int32_t phy_addr, int cs, int irq, int rst, SPIClass &spi, uint8_t spi_freq_mhz = ETH_PHY_SPI_FREQ_MHZ);
| ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:129:8: note: candidate expects 7 arguments, 2 provided C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hard ware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:131:8: note: candidate: 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, spi_host_device_t, int, int, int, uint8_t)' 131 | bool begin( | ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:131:8: note: candidate expects 10 arguments, 2 provided C:\Users\mkapski\AppData\Local\Arduino15\packages\ esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:136:8: note: candidate: 'bool ETHClass::begin()' 136 | bool begin() { | ^~~~~ C:\Users\mkapski\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\Ethernet\src/ETH.h:136:8: note: candidate expects 0 arguments, 2 provided exit status 1 Compilation error: no matching function for call to 'ETHClass::begin(int, int)'