s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
923 stars 174 forks source link

Empty page "Connected" specifically on ESP32 #317

Closed Looki2000 closed 2 weeks ago

Looki2000 commented 2 weeks ago

Describe the bug I'm getting empty page with "Connected" on ESP32 WROOM 32D in both hotspot and regular mode.

Browser console shows this:

controls.js:60 Unknown type or event
handleEvent @ controls.js:60
controls.js:35 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at WebSocket.handleEvent (controls.js:35:75)
handleEvent @ controls.js:35
controls.js:35 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at WebSocket.handleEvent (controls.js:35:75)
handleEvent @ controls.js:35
controls.js:35 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at WebSocket.handleEvent (controls.js:35:75)
handleEvent @ controls.js:35
controls.js:35 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at WebSocket.handleEvent (controls.js:35:75)
handleEvent @ controls.js:35
controls.js:35 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
    at WebSocket.handleEvent (controls.js:35:75)
handleEvent @ controls.js:35

It's not the same as of now still Open #209 because I'm getting these errors, and it's on ESP32 instead of ESP8266. It does not matter where I try to open it. On any browser, on any device, even on a phone. I'm not really experienced in ESP32 nor C++ so any help towards fixing that will be much appreciated.

To Reproduce Build and upload example "gui.ino" code and try to open it in browser. (or any other example)

Screenshots image

Additional context Versions of libraries

Looki2000 commented 2 weeks ago

I don't know why, but after updating to ArduinoJson 7.2.0 it works. I tried it yesterday and it didn't even compile.