Smart Home Automation Forum
LAN8720 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-E16S/E16P (https://www.kincony.com/forum/forumdisplay.php?fid=26)
+--- Thread: LAN8720 (/showthread.php?tid=6107)

Pages: 1 2


RE: LAN8720 - tonbor - 08-06-2024

(07-16-2024, 03:29 PM)desert286 Wrote: Hi everybody. I have a problem: I need to configure the KS868-E16st board so that the relays on it turn on according to the get request. I tried to use the code from this appeal: https://www.kincony.com/forum/showthread.php?tid=1927 But without result.
When compiling the code, the following error pops up:

invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]

Maybe the problem is with the wrong board in the Arduino IDE?

Versions of my apps:
Arduino 1.8.19
Ethernet 1.1.2

I hope on your help!
Thanks
Source is wrong
  //ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH WRONG
ETH.begin(ETH_TYPE, ETH_ADDR, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_POWER_PIN , ETH_CLK_MODE); //start with ETH Right