The Code is
Code: [Local Link Removed for Guests]
if (token$ ="4157") then ' if the token correspond to the read request
if (word$(r$, 2) <> "Error") then 'if is not an error
'assemble the 4 bytes in one 32 bits word
value$ = "&h"+ word$(r$, 5) + word$(r$, 6) + word$(r$, 7) + word$(r$, 8)
Ergebnis1= val(value$)
Ergebnis = ( CONVERT.FROM_IEEE754(Ergebnis1) )
Ergebnis4157$ = str$(Ergebnis,"%5.1f") + " W Momentleistung"
wlog Ergebnis4157$
[b] 'a$ = WPOST$ ( "192.168.0.104/" , { "total": Ergebnis4157$ } , 80 )[/b]
end if