26-01-2021, 18:55
Zrobiłem jednak, dla potomnych:
Kod:
char customKey = customKeypad.getKey();
if (customKey == '*')reset();
else if (customKey)
{
dane[x]= customKey;
x++;
if (x==8){
Serial.println(dane);
uint8_t bs[sizeof(dane)];
memcpy(bs, &dane, sizeof(dane));
esp_now_send(mac, bs, sizeof(dane));
x=0;
}
}