byteconverter&usb-serial?

Status
Not open for further replies.

koep

Member
Licensed User
Longtime User
Hi All!

I'm trying to convert received bytes in new_data event to doubles with byteconverter but I keep getting compile error in DoublesFromBytes saying missing parameter.

What is the proper way convert received 2 bytes to a double or 4bytes to long/int?

Rgds,
Tapio
 

Stephaner

Member
Licensed User
Longtime User
Hello
This code doesn't make the job for me. I mean that I Simply want to convert an array of 8 bytes into a double value.
This code gives an array of doubles.
My compiler returns an error when compiling.

My aim is to display the real value in decimal.

Thanks for your help.
Stephane.
 
Upvote 0
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…