Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code
#11
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
Reply


Messages In This Thread
RE: [Arduino IDE demo source code for KC868-A16]--#09-KC868-A16_Web_server_code - by wolli - 03-12-2025, 10:48 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)