![]() |
|
[Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_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]--#09-KC868-A16_Web_server_code (/showthread.php?tid=2165) |
RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - wolli - 03-12-2025 Hello I have a KC868-A16 I've recently performed an update KCS_KC868_A16_V2.2.2.bin The LEDs on the Ethernet interface are now lit but I still get the error message /**************************************************************************************************************************** WebServer.ino - Simple Arduino web server sample for Ethernet shield For Ethernet shields using WT32_ETH01 (ESP32 + LAN8720) WebServer_WT32_ETH01 is a library for the Ethernet LAN8720 in WT32_ETH01 to run WebServer Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases Built by Khoi Hoang https://github.com/khoih-prog/WebServer_WT32_ETH01 Licensed under MIT license *****************************************************************************************************************************/ #define DEBUG_ETHERNET_WEBSERVER_PORT Serial // Debug Level from 0 to 4 #define _ETHERNET_WEBSERVER_LOGLEVEL_ 3 #include <WebServer_WT32_ETH01.h> WiFiServer server(80); // Select the IP address according to your local network IPAddress myIP(192, 168, 2, 232); IPAddress myGW(192, 168, 2, 1); IPAddress mySN(255, 255, 255, 0); // Google DNS Server IP IPAddress myDNS(8, 8, 8, 8); ################################################################################################################################## In file included from /tmp/.arduinoIDE-unsaved2025212-12431-f36wql.f8x/WebServer/WebServer.ino:19: /home/arduino/Arduino/libraries/WebServer_WT32_ETH01/src/WebServer_WT32_ETH01.h:63:4: error: #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. 63 | #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. | ^~~~~ exit status 1 Compilation error: exit status 1 RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - wolli - 03-12-2025 Hello I have a KC868-A16 I've recently performed an update KCS_KC868_A16_V2.2.2.bin The LEDs on the Ethernet interface are now lit but I still get the error message /**************************************************************************************************************************** WebServer.ino - Simple Arduino web server sample for Ethernet shield For Ethernet shields using WT32_ETH01 (ESP32 + LAN8720) WebServer_WT32_ETH01 is a library for the Ethernet LAN8720 in WT32_ETH01 to run WebServer Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases Built by Khoi Hoang https://github.com/khoih-prog/WebServer_WT32_ETH01 Licensed under MIT license *****************************************************************************************************************************/ #define DEBUG_ETHERNET_WEBSERVER_PORT Serial // Debug Level from 0 to 4 #define _ETHERNET_WEBSERVER_LOGLEVEL_ 3 #include <WebServer_WT32_ETH01.h> WiFiServer server(80); // Select the IP address according to your local network IPAddress myIP(192, 168, 2, 232); IPAddress myGW(192, 168, 2, 1); IPAddress mySN(255, 255, 255, 0); // Google DNS Server IP IPAddress myDNS(8, 8, 8, 8); ################################################################################################################################## In file included from /tmp/.arduinoIDE-unsaved2025212-12431-f36wql.f8x/WebServer/WebServer.ino:19: /home/arduino/Arduino/libraries/WebServer_WT32_ETH01/src/WebServer_WT32_ETH01.h:63:4: error: #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. 63 | #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. | ^~~~~ exit status 1 Compilation error: exit status 1 RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - admin - 03-12-2025 if you have downloaded KCS firmware, just directly to use board, NOT need to use arduino. RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - wolli - 03-12-2025 Yes, that's true, but it was meant to be a test! I have a finished Arduino program! My program runs perfectly with WiFi! But I'd rather connect via Ethernet! But when I include #------------------------------------------------ #include <WebServer_WT32_ETH01.h> #------------------------------------------------ I always get the error message!!! #----------------------------------------------------------------------------------------------------------- In file included from /tmp/.arduinoIDE-unsaved2025212-12431-f36wql.f8x/WebServer/WebServer.ino:19: /home/arduino/Arduino/libraries/WebServer_WT32_ETH01/src/WebServer_WT32_ETH01.h:63:4: error: #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. 63 | #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. | ^~~~~ exit status 1 Compilation error: exit status 1 #----------------------------------------------------------------------------------------------------------- The yellow and green LEDs on the Ethernet port are always off. I need your help. I've tested various programs in the examples, and I always get the same error. Yes, that's true, but it was meant to be a test! I have a finished Arduino program! My program runs perfectly with WiFi! But I'd rather connect via Ethernet! But when I include #------------------------------------------------ #include <WebServer_WT32_ETH01.h> #------------------------------------------------ I always get the error message!!! #----------------------------------------------------------------------------------------------------------- In file included from /tmp/.arduinoIDE-unsaved2025212-12431-f36wql.f8x/WebServer/WebServer.ino:19: /home/arduino/Arduino/libraries/WebServer_WT32_ETH01/src/WebServer_WT32_ETH01.h:63:4: error: #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. 63 | #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. | ^~~~~ exit status 1 Compilation error: exit status 1 #----------------------------------------------------------------------------------------------------------- The yellow and green LEDs on the Ethernet port are always off. I need your help. I've tested various programs in the examples, and I always get the same error. RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - lusant - 03-13-2025 Hi, I had the same issue than @wolli. It looks like the WebServer_WT32_ETH01 library is incompatible with versions 3.x of Board Manager from ESP32 Espressif. If you install version 2.0.17 of Board Manager from ESP32 Espressif and use the code from https://www.kincony.com/forum/showthread.php?tid=2240&pid=8831#pid8831 it compile and work fine. Anyway, it will be good if Kincony support will find a way to use the recent versions Board Manager from ESP32 Espressif. RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - wolli - 03-15-2025 Hi Thank you very much for your reply lusant@ Now I can load the sketch but I get an error message, ----------------------------------------------------------------------------------------- Starting WebClient on ESO32_Dev with ETH_PHY_LAN8720 Webserver_WT32_ETH01 v1,5,1 for core v2.0.0 E (1024) esp.emac: emac_esp32_init(357): reset timeout E (1024) esp_eth: esp_eth_driver_install(214): init failed --------------------------------------------------------------------------------------------- and that for both example scripts KC868-A16_Web_Server_Eth.zip (Size: 413.26 KB / Downloads: or WebClient.ino - Simple Arduino web server sample for Ethernet shield I would be grateful for further help RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - venuakil2 - 03-27-2025 C:\Users\AYOO\Downloads\KC868-A16_Web_Server\KC868-A16_Web_Server\KC868-A16_Web_Server.ino:50:36: error: no matching function for call to 'PCF8574: CF8574(TwoWire*, int, int, int)'50 | PCF8574 pcf8574_I1(&I2Cone,0x3A,4,5); | ^ In file included from C:\Users\AYOO\Downloads\KC868-A16_Web_Server\KC868-A16_Web_Server\KC868-A16_Web_Server.ino:8: c:\Users\AYOO\Documents\Arduino\libraries\PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574: CF8574(uint8_t, TwoWire*)'30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire); | ^~~~~~~ c:\Users\AYOO\Documents\Arduino\libraries\PCF8574/PCF8574.h:30:12: note: candidate expects 2 arguments, 4 provided c:\Users\AYOO\Documents\Arduino\libraries\PCF8574/PCF8574.h:27:7: note: candidate: 'constexpr PCF8574: CF8574(const PCF8574&)'27 | class PCF8574 C:\Users\AYOO\Downloads\KC868-A16_Web_Server\KC868-A16_Web_Server\KC868-A16_Web_Server.ino:50:36: error: no matching function for call to 'PCF8574: CF8574(TwoWire*, int, int, int)'50 | PCF8574 pcf8574_I1(&I2Cone,0x3A,4,5); | ^ RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - admin - 03-27-2025 here is PCF8574 arduino library we have used.
PCF8574_library.zip (Size: 23.8 MB / Downloads: 291)
RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - venuakil2 - 03-27-2025 C:\Users\AYOO\Downloads\KC868-A16_Web_Server\KC868-A16_Web_Server\KC868-A16_Web_Server.ino:50:36: error: no matching function for call to 'PCF8574: CF8574(TwoWire*, int, int, int)'50 | PCF8574 pcf8574_I1(&I2Cone,0x3A,4,5); | ^ In file included from C:\Users\AYOO\Downloads\KC868-A16_Web_Server\KC868-A16_Web_Server\KC868-A16_Web_Server.ino:8: c:\Users\AYOO\Documents\Arduino\libraries\PCF8574/PCF8574.h:30:12: note: candidate: 'PCF8574: CF8574(uint8_t, TwoWire*)'30 | explicit PCF8574(const uint8_t deviceAddress = 0x20, TwoWire *wire = &Wire); | ^~~~~~~ RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - venuakil2 - 03-27-2025 Errors are resolved . But, 192.168.3.182 web portal timeout error. 17:14:07.203 -> *wm:AutoConnect 17:14:07.203 -> *wm:AutoConnect: ESP Already Connected 17:14:07.203 -> *wm:AutoConnect: SUCCESS 17:14:07.203 -> *wm:STA IP Address: 192.168.3.182 17:14:07.203 -> WiFi connected! 17:14:07.203 -> IP: 192.168.3.182 17:14:07.203 -> 17:14:07.203 -> WiFi connected. 17:14:07.203 -> IP address: 17:14:07.236 -> 192.168.3.182 |