Skip to content
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

Debug logging / console via HTTP interface #45

Open
mrtnkhl opened this issue Dec 3, 2024 · 3 comments
Open

Debug logging / console via HTTP interface #45

mrtnkhl opened this issue Dec 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@mrtnkhl
Copy link

mrtnkhl commented Dec 3, 2024

For locations that do not allow for serial access to the gdoor ESP32 board, it would be ideal if logs / console would be accessible via the gdoor firmware http interface for live logging/debugging

@DaSchaef
Copy link
Contributor

DaSchaef commented Dec 3, 2024

I can for sure say that a debug logging over WiFi will not be possible. Only higher level logging could be done, but if it is higher level the benefit and gained information of it may be questionable.

This is a technical limitation of small embedded systems:

  • Not much flash storage
  • Writing flash storage decreases lifetime (systems are optimized for write rare, read often)
  • Sending out via WiFi already means that a lot subsystems if not all need to work. E.g. how to send out debug messages for wifi, over wifi, if wifi makes problems ;-)

@DaSchaef DaSchaef closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
@mrtnkhl
Copy link
Author

mrtnkhl commented Dec 4, 2024

Higher level would be great, just to verify that the gdoor device is happy and working or to manually send commands, e.g. send a payload directly from the firmware and not via MQTT or serial. Stream into the browser window would be sufficient, no need to keep log in flash.

Ideally it would be possible to follow along what the unit is doing high level and issue commands so that correct function can be verified.

@DaSchaef DaSchaef reopened this Dec 4, 2024
@DaSchaef
Copy link
Contributor

DaSchaef commented Dec 4, 2024

This may be a feature more in the future, as it would also mean to change the WiFiManager

@DaSchaef DaSchaef added the enhancement New feature or request label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants