Hi, I need to save DS18B20 IDs to EEPROM. I need to send these ids over HTTP.
Webserver send me for example string like (I can change it) 0x28,0x94,0xE2,0xDF,0x02,0x00,0x00,0xFE. How can I parse it in Arduino?
I need byte id[] = {0x28,0x94,0xE2,0xDF,0x02,0x00,0x00,0xFE}.
If it is a string, you can use strtok() to get the comma separated tokens, and then use strtoul() to convert the token to a numeric value. Then, store the numeric value in EEPROM.