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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -