In my case my Puck is notifying a .js app of a change of a float32 value.
I tried using print() but this converts a float32 into a ascii byte-string. This is sort of OK but rather messy for the app to have to convert back to a Float, not to mention potential loss of precision.
Is there a way to send the float in its natural 4-byte form so that converting back to float32 can be easily done by the app?
© Espruino, powered by microcosm.
Report a problem