You are reading a single comment by @mg and its replies.
Click here to read the full conversation.
-
you can also set a watch via setWatch and produce some output when button click happens. Then from the website you probably have some handler when new data arrives from the UART. That way you would not need to poll.
check https://github.com/espruino/EspruinoWebTools/blob/master/uart.js#L36
working on it. Thought this was the solution but it's no so simple> UART.eval("BTN3.read()",function(t) { alert('pressed'); });