What is the problem. im compiling for esp32 and it gives me this error?
exit status 1
invalid user-defined conversion from 'IPAddress' to 'const void*' [-fpermissive]
void update_ip(byte to[], IPAddress ip, char name[]) {
if (memcmp(to, ip, 4) != 0) {
for (byte j = 0; j < 4; j++) {
to[j] = ip[j];
}
Serial.print("----------------PAIRED ");
Serial.println(name);
_writeEEPROM();
} else {
Serial.print("----------------no need to pair ");
Serial.println(name);
}
}