I have such a code that parses the char, the individual fields in the byte. but the problem occurs when you change and do not know how to prevent it
char struu[] ="198.168.100.200";
byte vystup[10];
parseSymbols(struu, vystup);
void parseSymbols(char *line, byte *symbols) {
//Serial.println(line);
byte *p = (byte*)(strtok(line, "."));
for(int i=0; i <= sizeof(p)+1;i++)
{
symbols[i] = p; //error
p = (byte*)(strtok(NULL, "."));
}
}