Write hex to net socket #4475
Unanswered
espruino-discuss
asked this question in
Pico / Wifi / Original Espruino
Replies: 1 comment
-
Posted at 2017-06-15 by dave_irvine Found the answer :d http://forum.espruino.com/conversations/304363/#comment13617635 Posted at 2017-06-15 by @gfwilliams Thanks for the link! I did update the docs previously, but they'll only go online when 1v93 is released I'm afraid! Another option is to just use an escape sequence in a string: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-15 by dave_irvine
I'm probably missing something stupendously obvious, but I need to write raw hex values to a net socket.
I've tried
sckt.write([0xFF], 'hex')
, but I receive ASCII encoded data at the far end.Also tried
sckt.write('FF')
,sckt.write('0xFF')
, constructing a Uint8Array and sending that, but no matter what I do I just get ascii data.Beta Was this translation helpful? Give feedback.
All reactions