USB writing binary data

Everything about programming the platform and using the Waspmote API
Post Reply
Posts: 2
Joined: Mon Jul 22, 2019 6:39 pm
Company: Origin Rose

USB writing binary data

Post by rosejn » Sat Jul 27, 2019 1:31 am

I don't see any functions in the USB API to write bytes over the serial port, and when I use print it converts them to a hex representation. How do I just write bytes to the serial port in binary?

Also, in the code and documentation for the WaspFrame packet layer, I can't find anything about reading and parsing packets. I need to be able to read packets out in the network as well as from my scripts on a computer where I'm receiving data. Do you have code for reading and parsing?


Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: USB writing binary data

Post by libelium-dev » Mon Jul 29, 2019 11:56 am

Hi rosejn,

Using the next function you will be able to print in binary format,

Code: Select all

Hope this help.


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest