-
Okay, thanks that clears that up. re: 'E.getTemperature( )'
https://www.espruino.com/datasheets/STM32F411xE.pdf
p.116 50C seems to be on the low end of their test cal rangesp.11 'The STM32F411xC/xE operate in the –40 to +105 °C temperature range'
p.32 3.30 Temperature sensor - Variation in internal temperature
Also note:http://www.espruino.com/Reference#l_E_getTemperature
'Note: This is not entirely accurate and varies by a few degrees from chip to chip. It measures the die temperature, so when connected to USB it could be reading 10 over degrees C above ambient temperature.'
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()?
p.116
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?