Closed dirkdickler closed 1 year ago
Hi @dirkdickler
I have problem with varialble: wsServer - this varialbe not define in browser
Try with that unmodified example first with Arduino IDE. If OK, then your code to see. If OK, then use more complex platform later, provided you know what's you're doing and with correct settings,
The example ESP32_Ethernet_ServerAllFunctionsDemo is compiled here OK
Sorry if you still have issue with your code, please ask for support on Arduino Forum as I don't have time and not interested in helping with individual codes, unless there is a proven bug of the library.
In example : https://github.com/khoih-prog/WebSockets2_Generic/tree/master/examples/Generic/Ethernet/ESP32/ESP32_Ethernet_ServerAllFunctionsDemo
I have problem with varialble: wsServer - this varialbe not define in browser I create two server.on server.on("/", - problem with varialble: wsServer (orange,red) server.on("/test" - (blue) here I replace text "new WebSocket(wsServer, ['arduino']); " by my ipadress "new WebSocket(\"ws://192.168.1.10:8080/\", ['arduino']);" -result see in attachment
A testing on WebSockets2_Generic 1.12.0 and 1.12.1 latest same result VS CODE -platformIO : espressif/toolchain-xtensa-esp32s2@ 8.4.0+2021r2-patch3 framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.5