maakbaas / esp8266-iot-framework

Framework for IoT projects implementing HTTPS requests, a React web interface, WiFi manager, live dashboard, configuration manager, file manager and OTA updates.
GNU General Public License v3.0
415 stars 113 forks source link

DashBoard #58

Closed FSCSoft closed 3 years ago

FSCSoft commented 3 years ago

22790e7f-7440-4d8b-ab73-09f70bb4d659

the dashboard does not work on mobile devices

maakbaas commented 3 years ago

Does the same page function on the desktop for you? Can you tell me what happens here, and why it does not work? What behavior do you expect, and what does it do? It seems surprising that there would be a difference between mobile and desktop, in my case on mobile it works just as well as on desktop.

How does your JSON file look and your C code?

Do you see in the ESP8266 terminal that a new WS is connected when you go to this page from your mobile? Actually, the fact that the live label is shown indicates that there is a successful Websocket connection...

FSCSoft commented 3 years ago

Yes on desktop if it works perfectly I could only make it work in chrome dev in android for my thinking it can be the bintojson converter and if the connection to the websocket and api rest is fine because I can set the options

Sentek Ver.

El 25 nov 2020, a la(s) 11:33 p. m., Maakbaas notifications@github.com escribió:

How does your JSON file look?

Does the same page function on the desktop for you? Can you tell me what happens here, and why it does not work? It seems surprising that there would be a difference between mobile and desktop.

Do you see in the ESP8266 terminal that a new Websocket is connected when you go to this page from your mobile? Actually, the fact that the live label is shown indicates that there is a successful Websocket connection

maakbaas commented 3 years ago

Without providing more details in response to my earlier questions I am inclined to close this issue, because then it will be difficult to debug...

FSCSoft commented 3 years ago

If friend will be difficult debugging I agree

dashboard.zip

FSCSoft commented 3 years ago

don't think about using arduinoJSON

maakbaas commented 3 years ago

and your C code?

FSCSoft commented 3 years ago

here it is WifiLavadora.zip

maakbaas commented 3 years ago

Thanks for sharing. I tried your code on 2 different mobile phones (1 android and 1 iPhone) and in both cases it works as expected. Hopefully for you now the solution is acceptable to use Chrome dev for Android. If more people run into the same issue we can investigate further!