net module write sending string only #719
Replies: 3 comments
-
Posted at 2017-05-04 by @gfwilliams Yes,
If you did You could use Sending floats is a bit more tricky, but you have 2 main options: Typed Arrays
DataView This got added as of 1v92, and it lets you store and read all kinds of data really conveniently: http://www.espruino.com/Reference#DataView
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-05 by dave_irvine This would be good information to add to the net module documentation! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-05 by @gfwilliams Thanks! Yes, I'll add a note to do that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-04 by dh.
I there any way to send other data types? I want to send with my Espruino Pico float (it's bytes), but it's always sending as text.
I know how to handle the text, it's just that would take less bytes to send if it were always 8 bytes from it's float data type.
Beta Was this translation helpful? Give feedback.
All reactions