• Sat 2021.04.24

    From 1st snippet:
    L32 ws.send(oled.value);
    is returning the value of an Html element defined at:
    L19 var oled = document.getElementById('oled');

    I don't believe a WebSocket object returns a temperature in it's payload.


    Would you post the contents of L20 evt please. . . and/or link to datasheet/tutroial that demos that task.

    Is there an additional snippet with a function like getTemp()?


    50C seems to be on the low end of their test cal ranges

    Forgive me on: 'UTF-8 character encoding (hungarian's accented characters)'
    I concur with your observation for the '?' char and will have to defer to others for an answer. Your snippets will provide that detail needed for them to comment on.

    In the mean time: Does this assist at all?

    'Espruino does not support unicode natively'

  • 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);

Avatar for user127815 @user127815 started