Oct-28-2019, 01:52 PM
Hi,
I would like to send 4 Bytes of Hex data over serial to a microcontroller which are being received from GUI in PyQt5.
For example, consider the first two bytes received as characters 'a' and 'b' while the remaining two bytes as integers and I would like to send all the 4 bytes as Hex values over serial. Kindly help.
firstByte = 'a'
secondByte = 'b'
thirdByte = 100
fourthByte = 120
Thanks in advance,
gratna
I would like to send 4 Bytes of Hex data over serial to a microcontroller which are being received from GUI in PyQt5.
For example, consider the first two bytes received as characters 'a' and 'b' while the remaining two bytes as integers and I would like to send all the 4 bytes as Hex values over serial. Kindly help.
firstByte = 'a'
secondByte = 'b'
thirdByte = 100
fourthByte = 120
Thanks in advance,
gratna