byte - Convert "AA" to 0xaa in arduino -
i need convert string :"aa99bb67" char[]={0xaa,0x99,0xbb,0x67}.how can that?
strtoul()
give 32-bit value. can use variety of methods turn array of characters. example, can use right shift move appropriate byte of 32-bit value low byte , assign element of character array.
Comments
Post a Comment