It just Serial.println(int, HEX);
that I'm using.
I found this solution from johnwasser at https://forum.arduino.cc/t/how-to-split-a-string-with-space-and-store-the-items-in-array/888813/9 and adapted it like that, it appear that everything work as expected now, no funky things happening
void MACADDRSET() {
uint8_t basemac[6];
int StringCount = 0;
String msg;
msg = {readFile(SPIFFS, MacGenPath)};
char temp[3];
for ( int i = 0; i < sizeof(basemac); i++)
{
int index = msg.indexOf('\t');
if (index == -1) // No space found
{
basemac[StringCount++] = msg.toInt();
break;
}
else
{
basemac[StringCount++] = (msg.substring(0, index)).toInt();
msg = msg.substring(index+1);
}
}
for (int i = 0; i < StringCount; i++)
{
Serial.print(i);
Serial.print(": \"");
Serial.print(basemac[i], HEX);
Serial.println("\"");
}
esp_base_mac_addr_set(basemac);
delay(15);
}
What should I do about that?