WiFiChatServer error: cannot declare variable 'server' to be of abstract type 'WiFiServer'

Hi,
I am quite new in the thema. I am using ATOM and trying to run exampe:
....github.com/arduino-libraries/WiFiLink-Library/blob/master/examples/WiFiChatServer/WiFiChatServer.ino

And I get error:

...\Documents\Arduino\WiFi_Telenot\WiFi_Telenot.ino:10:12: error: cannot declare variable 'server' to be of abstract type 'WiFiServer' WiFiServer server(23); ^~~~~~ In file included from ...\Documents\Arduino\WiFi_Telenot\WiFiLink.h:38, from ....lipinski\Documents\Arduino\WiFi_Telenot\WiFi_Telenot.ino:1: ...\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.7\libraries\WiFi\src/WiFiServer.h:27:7: note: because the following virtual functions are pure within 'WiFiServer': class WiFiServer : public Server { ^~~~~~~~~~ In file included from ...\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.7\cores\esp32/Arduino.h:172, from ...\AppData\Local\Temp\arduino\sketches\EBB5D1EBB9701E59C0BCA77B228F666E\sketch\WiFi_Telenot.ino.cpp:1: ...\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.7\cores\esp32/Server.h:29:15: note: 'virtual void Server::begin()' virtual void begin() = 0; ^~

What I am doing wrong?

Probably outdated example, says you have to use a derived class that implements begin() maybe they updated the api since they created the example

delete WiFiLink.h

Thank You for responce. I did not check the ideas becouse at first i reinstalled esp32 library and after that i have not the problem any more. But there is always a but.
I compiled the project and run on my Atom. I can connect to the server with client, i get the welcome message from the server and than the server closes the connection and i can not send messages to server. Any idea what couses the problem.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.