• The only thing I am confused about is how to send the return output of a function back to my webpage?! For example if I call digitalRead(D5); The function logs either a 0 or 1 to the console. Instead I want to send the response using

    ws.send(response);
    

    I tried setting the console to a variable and then sending the variable over ws, but the msg is always empty.

    clog = console.log;
    ws.send(clog);
    
About

Avatar for Esper @Esper started