martinayotte wrote:But what is you original question ?
If your sketch doesn't work as expected, maybe it is the way you are defining your buttons.
Personally, I would rather use microajax from https://code.google.com/archive/p/microajax/ and define the button as follow :Code: Select all<input type="button" value="On" onClick="microAjax('/socket1On', function(res) { } );" />
Hi Martin, thanks for the reply, it's hard to put my question into words I think, because it's not a "specific" how to. I found a way around my problem by placing an operation in the loop along with what was in there originally. In this case what I was trying to accomplish was to have an led to a fade repetitively when an "on" button was pressed at the browser end, continue that fade, until an "off" button was pressed. The only line that was in the loop was
server.handleClient();