Hi guys,
I confess, Web communication is like Chinese to me. This said, I re-started fiddling with my ESP32 Dev Module, and am in the mist of changing the Responses within the above mentioned sub.
While sending very basic responses to the browser (using Astream.write) works fine, I was having trouble when adding something as simple as a checkbox in the <body> part.
What I am trying to do is to return a much more complex html response, with components such as input text fields and others. What I came to find is that the NewData event is fired multiple times (anything between 5 to 9 times) with each individual browser GET "request"... and so I was getting the same amount of web components rendered into the browser.
Is this normal behavior? I ended up working around this by setting a control variable and exiting the NewData if its value was not as expected.
This results in a single response, which renders correctly in the browser...
But.... Is this normal behavior? Am I missing something (Data wise)?
I confess, Web communication is like Chinese to me. This said, I re-started fiddling with my ESP32 Dev Module, and am in the mist of changing the Responses within the above mentioned sub.
While sending very basic responses to the browser (using Astream.write) works fine, I was having trouble when adding something as simple as a checkbox in the <body> part.
What I am trying to do is to return a much more complex html response, with components such as input text fields and others. What I came to find is that the NewData event is fired multiple times (anything between 5 to 9 times) with each individual browser GET "request"... and so I was getting the same amount of web components rendered into the browser.
Is this normal behavior? I ended up working around this by setting a control variable and exiting the NewData if its value was not as expected.
This results in a single response, which renders correctly in the browser...
But.... Is this normal behavior? Am I missing something (Data wise)?