How to send 0x data to serial ?
I want to send 0x data to serial :
send /dev/tty.wchusbserial1420 0x52420b0213fa052a03e8c8
But it changes to :
{"Cmd":"Queued","QCnt":2,"Ids":[""],"D":["0x52420b0213fa052a03e8c8\n"],"Port":"/dev/tty.wchusbserial1420"}
Probably best for you to tweak the source code to natively support binary data. Today SPJS is all about strings, but there have been some requests in the past for binary data. If you were able to make the changes, I'd fully welcome a pull request, but not in this repo. The main repo is now in the ChiliPeppr account in Github.
On Mon, Feb 12, 2018 at 12:13 AM, liam2014 [email protected] wrote:
I want to send 0x data to serial :
send /dev/tty.wchusbserial1420 0x52420b0213fa052a03e8c8
But it changes to :
{"Cmd":"Queued","QCnt":2,"Ids":[""],"D":["0x52420b0213fa052a03e8c8\n"]," Port":"/dev/tty.wchusbserial1420"}
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/johnlauer/serial-port-json-server/issues/68, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbWcNldIvtIzS3iHOmINhrDfJmyiYks5tT_KlgaJpZM4SB0AJ .
Thank you for your enthusiastic response, I know how to do it.