Hey ^^,
want to create a webserver inside a class becuase of some problems i had to search to solve my problem ... however i found one solution here (First answer)...
it works fine but what does the following Code snippet do (in general the solution too)
(Please pay attention about the Wifi::wifi ":" and not ";")
foo.h
class Wifi{
private:
ESP8266WebServer server;
WebSocketsServer webSocket;
public:
Wifi(void);
};
}
foo.cpp
Wifi::Wifi() :
server(80),
webSocket(81)
{
}
I understand the .h File but what is that:
Wifi() :
server(80),
webSocket(81)
{
}
Why Constructor:Command / functionName:Command {}
-> What is the "name" for this type of Code - e.g Lambda function
Thanks for help ^^
j54j6