Smart Home Automation Forum
[Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - 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-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code (/showthread.php?tid=2240)

Pages: 1 2


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - admin - 08-06-2024

it should be these setting:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0

change your ETH_PHY_ADDR to 0


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - tonbor - 08-07-2024

This will not work because your code is wrong.
change -> ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //wrong
in
ETH.begin(ETH_TYPE, ETH_ADDR, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_POWER_PIN , ETH_CLK_MODE); //right
And the code will compile


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - admin - 08-07-2024

ok, good.


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - egorov_v - 12-05-2025

Hello! Could you please advise me about the board? When I try to write this sketch, I get the following error during compilation.
I installed the latest version of the WebServer_WT32_ETH01.h and PCF8574.h libraries. Big Grin


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - admin - 12-06-2025

do you have downloaded ZIP file and unzip source code to use?


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - egorov_v - 12-06-2025

(12-06-2025, 01:05 AM)admin Wrote: do you have downloaded ZIP file and unzip source code to use?

Yes, that's right, but I downloaded the libraries from the Arduino library manager
When I tried to load the AdvancedWebServer example from the WebServer_WT32_ETH01 library onto the board, I got the same error


RE: [Arduino IDE demo source code for KC868-A16]--#11-KC868-A16_Ethernet_Web_server_code - admin - 12-06-2025

please check where have the invalid UTF-8 code.