Обновить pairing устройств и доработать ESP32 UI

This commit is contained in:
AidarKC
2026-06-19 20:47:56 +04:00
parent cc074a941f
commit a788d8bcf5
18 changed files with 1020 additions and 126 deletions
@@ -136,8 +136,8 @@ final class EspPairingSupport {
| ((digest[1] & 0xFFL) << 16)
| ((digest[2] & 0xFFL) << 8)
| (digest[3] & 0xFFL);
long shortCodeNum = code % 10_000_000L;
String shortCode = String.format(Locale.ROOT, "%07d", shortCodeNum);
long shortCodeNum = code % 10_000_000_000L;
String shortCode = String.format(Locale.ROOT, "%010d", shortCodeNum);
return new PairingFingerprint(shortCode, toBase58(digest));
}