-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual feedback when comms between esp8266 and OI board is not working #23
Comments
Maybe show the number of transmitted and received messages, to give the user the chance to see what is happening. |
All good suggestions here, thanks @uhi22 I'll get something implemented on esp8266 and then to a separate MR for the esp32 👍 |
PR submitted : #24 |
I added it to ESP32 as well. Maybe that is more universal? |
tested the latest esp32-web-interface, can-backend branch. I do not get the red error bar, no matter what I do. [Edit] The upload of the new files (e.g. ui.js) via the web interface and via |
Do you get it when selecting an invalid node id? Edit: uploading via web interface worked for me but you have to Ctrl+F5 because the ESP sends a superficial 1-day caching time |
My test case: |
Now checking for CAN comms while fetching values via SDO. Explicitly returning error 500. When turning off power to the ESP32 you still get the "between STM and ESP" message though, haven't found out how to check for network error and display something more appropriate |
I do not know the overall concept, so just dreaming: In the browser (javascript), there is a timer which is started as soon as data is requested from the ESP, and expires after 200ms. If no response arrived during this time, then show the error bar with the content "no response from ESP". |
User MattsAwesomeStuff pointed out in this post that it can sometimes not be apparent (especially to people new to the OI world) that communication between the esp8266 board (or whatever is providing the web interface) and the actual OI board itself is not working. It would be good to have some visual indication of this in the interface itself.
I've done a bit of work on the web stuff in the past, so I'm happy to take the on myself. Just logging an issue here to try and follow a clear process :)
The text was updated successfully, but these errors were encountered: