• Temperature sending code

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

Avatar for Robin @Robin started