[Tutor] Convert string to bytes
shweta kaushik
coolshwetu at gmail.com
Wed Dec 31 11:08:05 CET 2014
Hi all,
I need help on this problem.
I have one message packet in form of string s = '0xFE, 0x01, 0x01, 0x22,
0xFE, 0x02'. I have to send this data to MSP430 microcontroller, but it is
not taking data if it is string. If I am passing this as hardcoded value s1
= 0xFE, 0x01, 0x01, 0x22, 0xFE, 0x02 then board is responding. I want to
convert s as s1 using python.
Please help me out to convert string in normal format for microcontroller
to respond.
Thanks in advance.
Regards,
Shweta
More information about the Tutor
mailing list