Open stevesch opened 4 years ago
https://github.com/DatanoiseTV/esp-find3-client/blob/9a85d666a1cd6dcad5e217a8cd01ab53bbbf6a61/test/monitor_mode_esp32.ino#L53
String(p->payload[i],HEX) can generate one or two digits. In the case of one digit, "0" should be placed in front, as in: digits = String(p->payload[i],HEX); if (digits.length() < 2) { digits = "0" + digits; }
https://github.com/DatanoiseTV/esp-find3-client/blob/9a85d666a1cd6dcad5e217a8cd01ab53bbbf6a61/test/monitor_mode_esp32.ino#L53
String(p->payload[i],HEX) can generate one or two digits. In the case of one digit, "0" should be placed in front, as in: digits = String(p->payload[i],HEX); if (digits.length() < 2) { digits = "0" + digits; }