I apologise if this question has already been answered here. My searches have turned up similar questions but I have been unsuccessful in applying them to my situation.
I receive data via serial communication as two 16bit hexadecimal bytes. Now represented by two python integers. [48822, 15938]
These bytes represent a signed floating point variable. i.e. [48822, 15938]-->[0xbeb6, 0x3e42]-->[0x3e42beb6]-->[0.190181]
How would I complete this conversion in python3.4?
You can use
*lstto convert your list to parameters forstruct.pack.