• Temperature sending code

    function broadcast(msg) {
      clients.forEach( cl => cl.send( msg ) );
    }
    
    setInterval(function( ) {
      var t = E.getTemperature( ).toFixed( 1 );
      broadcast( '{"param":"temp","value":"'+ t +'"}' );
    }, 500);
    
About

Avatar for Robin @Robin started