In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless
A) You've not posted well formatted code in code tags.
B) You've not posted which board you are using.
C) You've not stated the programs expectations and what it actually does.
D) You 'told us' that something is wrong and have asked people to guess what it is.
I'm sure I could nit pick on other things but that will do for now.
As a note, when posting code not in code tags, the thread devolves into a how to properly post, after all you followed the sites instructions about the 'read me first' thingies?
test:64:15: error: expected constructor, destructor, or type conversion before ';' token
void "/", handle_open() {
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void setup()':
test:46:10: error: 'class WiFiServer' has no member named 'on'
server.on("/", handle_OnConnect);
^
test:47:10: error: 'class WiFiServer' has no member named 'on'
server.on("/open", handle_open);
^
test:47:22: error: 'handle_open' was not declared in this scope
server.on("/open", handle_open);
^
test:48:10: error: 'class WiFiServer' has no member named 'on'
server.on("/close", handle_close);
^
test:49:10: error: 'class WiFiServer' has no member named 'on'
server.on("/stop", handle_stop);
^
test:50:10: error: 'class WiFiServer' has no member named 'onNotFound'
server.onNotFound(handle_NotFound);
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void loop()':
test:57:10: error: 'class WiFiServer' has no member named 'handleClient'
server.handleClient();
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void handle_OnConnect()':
test:61:10: error: 'class WiFiServer' has no member named 'send'
server.send(200, "text/html", SendHTML);
^
C:\Users\YYY\Desktop\test\test.ino: At global scope:
test:64:6: error: expected unqualified-id before string constant
void "/", handle_open() {
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void handle_close()':
test:69:10: error: 'class WiFiServer' has no member named 'send'
server.send(200, "text/html", SendHTML);
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void handle_stop()':
test:73:10: error: 'class WiFiServer' has no member named 'send'
server.send(200, "text/html", SendHTML);
^
C:\Users\YYY\Desktop\test\test.ino: In function 'void handle_NotFound()':
test:77:10: error: 'class WiFiServer' has no member named 'send'
server.send(404, "text/plain", "Not found");
^
Bibliothek WiFi in Version 1.0 im Ordner: C:\Users\YYY\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi wird verwendet
exit status 1
expected constructor, destructor, or type conversion before ';' token
With those changes it compiles, and should more or less work if the html code was correct, but it isn't.
First of all there is no need for all thos '\n' newlines, they don't actually do anything, but they shouldn't be there.
but more importantly,
you are supposed to close the and , but instead you open them again. (it should be & ) And of course all of what the other guys said. (you hijacked a thread ? there is a button to start a new topic you know ? )[/code]
you say thank you but there still remains a smell of
you asking "can you please help me?" and then a kick in the ass "oh I found another code that works for me"
not even taking the time to post the now working code to share it with the community.
This shows you are not willing to learn deeper. Making the next step work is enough for you.
This will keep you on a low knowledge-level. I predict that you will come up with a lot of questions again and again.
So I suggest posting google-requests with some useful keywords will fit best to your strategy
I solved it like this and adjusted it for myself.
The HTML code is of course not perfect and has to be adapted. The text probably isn't perfect either, but it works. A library must be installed.