I am currently working on an esp32 project and at the moment I am trying to implement a "smart" html checkbox on a web server. Let me explain.
I want to have a checkbox on a Website, which current status (checked or unchecked) should be updated every once in a while. When I say updated I mean that it's current state should adjusted to a boolean so that when i change the boolean by lets say a press of a hardware button the checkbox gets updated automatically. So that basically a buttonpress would do the same thing as ticking the checkbox but the checkbox on the webserver would get updated when a buttenpress and thus a status change would be detected.
As a basis for the checkbox currently use the code published here: https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/?unapproved=677718&moderation-hash=e7d115e73f50976449af402f9818b62e#comment-677718
Any ideas on how to pull this off or even better how i would have to adjust the code used in the linked example??