Skip to content

Use host-supplied app credentials; pick the sensor by its advertised address - #18

Merged
ps2 merged 2 commits into
mainfrom
app-credentials-cleanup
Oct 6, 2026
Merged

ps2 merged 2 commits into
mainfrom
app-credentials-cleanup

Conversation

@ps2

@ps2 ps2 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor
  • App credentials: RoundWhiteDiscKit takes its app credentials from the host.
  • Sensor selection: pairing took the first peripheral advertising the Libre 3 service, so a nearby Lingo (or another Libre-family sensor) could win the scan and fail the handshake with a misleading "certificate rejected". A Libre 3 advertises its BLE address as its local name (E4:64:47:6E:2C:FE → E464476E2CFE); the scan now matches it against the address from the NFC response, and logs every discovery.
  • Cleanup: removes the app-identity pairing debug toggle; "Paired With" shows the credential label.
  • Bumps RoundWhiteDiscKit to airedev326/RoundWhiteDiscKit@e66da6c.

Tested on device: re-paired with a Lingo nearby (skipped by address), reconnects, saved-file digest mismatch.

ps2 added 2 commits October 6, 2026 15:46
…address

RoundWhiteDiscKit no longer carries runtime tables. LibreLoop now downloads
the app credentials file from Arweave, verifies it against a pinned SHA-256,
and installs it with AppIdentities.install(json:).

Pairing scanned for the first peripheral advertising the Libre 3 service, so
another Libre-family sensor nearby (e.g. a Lingo) could win and fail the
handshake. A Libre 3 advertises its BLE address as its local name; match it
against the address from the NFC response.

Removes the app-identity pairing debug toggle and whitebox leftovers, and
bumps RoundWhiteDiscKit to 4c940d2.
@ps2
ps2 merged commit 150d2b1 into main Oct 6, 2026
compton-lac pushed a commit to lac-gh-org/LoopWorkspace that referenced this pull request Oct 6, 2026
RoundWhiteDiscKit takes its app credentials from the host; LibreLoop
downloads them and picks the sensor by its advertised BLE address
(LoopKit/LibreLoop#18).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant