I want to store WiFi-credentials and some other configurations on the flash/EEPROM of my ESP8285.

I will receive Strings from an webserver input field. I wrote a little test code to figure out if the storing and converting works. Turns out it doesn't. I cant figure out how to convert a char array to a byte array and neglecting some characters like the ":" when I want to store a MAC-address. Storing SSID, passphrase and channel works well but MAC-address not. 

Here is my code snippet when writing to the EEPROM:

```
void writeCredentials() {
  String newSSID = "WRT";
  String newPass = "45568798789098794879784";
  String newBSSID = "3A:79:16:A8:B5:76";
  char buff[sizeof(settings.eeBSSID)];
  byte mac[6];
  char chBuff[3];
  char *ptr;
  newBSSID.toCharArray(buff, newBSSID.length() + 1);
  Serial.println(buff);
  ptr = strtok(buff, ":");
  int index = 0;
  while (ptr != NULL) {
    strcpy(chBuff, ptr);
    Serial.print(" Mac: ");
    Serial.print(chBuff);
    sscanf(&chBuff[2], "%02xd", &mac[index]); //no idea here maybe completely wrong
    index++;
    ptr = strtok(NULL, ":");
  }
  Serial.println("");
  newSSID.toCharArray(settings.eeSSID, newSSID.length() + 1);
  newPass.toCharArray(settings.eePass, newPass.length() + 1);
  for (int i = 0; i < sizeof(mac); i++) {
    Serial.println(char(mac[i]));
  }
  settings.eeChannel = 12345;
  memcpy(settings.eeBSSID, mac, sizeof(mac));
  EEPROM.put(0, settings);
  Serial.println("Settings saved!");
}

```

For testing purposes I throw the Strings into the writeCredentials() function. Later they will come from an webserver text input form. Everything is managed in a config struct like this:

```
typedef struct WiFi_Settings {
  char eeSSID[32];
  char eePass[32];
  byte eeBSSID[6];
  int eeChannel;
};

WiFi_Settings settings {
  "",
  "",
  {0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
  1
};

```

Im struggling for hours to get the newBSSID converted to a byte/uint8\_t array which I can store in my struct and which will be later used for the WiFi.begin function of the ESP...

Tested lots of variations with strtok, sscanf and tried to split the char array (stored in buff) into bits of 2 char pieces which I then can convert to an byte and passing it to the byte array but every time something does not work. Maybe somebody can help me?