payfrit-beacon-ios/PayfritBeacon
Luna 1e3e0198b1 refactor: v2 BeaconProvisioner — prevention over recovery
Major cleanup of the BLE provisioning flow:

- Remove frames 3-6 disable steps (no longer overwriting "extra frames")
  Only Frame 1 (device info) and Frame 2 (iBeacon) are configured now.
  Command count drops from 24 to 16.

- Eliminate 5 layers of retry/reconnect/resume logic:
  No more disconnect retry counter (was 5 retries)
  No more resume-from-position after reconnect
  No more characteristic re-discovery attempts
  No more device info read/skip dance
  If connection drops mid-write, fail cleanly — let user retry.

- Prevention approach: verify all 3 required characteristics (FFE1/FFE2/FFE3)
  are confirmed before starting any writes. No mid-write discovery.

- Add POST_AUTH_DELAY (1.5s) to let beacon stabilize after auth before writes.

- Keep response gating (wait for FFE1 after each write) — this is the key
  mechanism that prevents blasting commands faster than the MCU can handle.

- 191 insertions, 476 deletions — nearly half the code removed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 03:57:02 +00:00
..
Assets.xcassets Add ios-marketing idiom, iPad orientations, launch screen 2026-02-10 19:38:11 -08:00
en.lproj Rewrite app: simplified architecture, CoreLocation beacon scanning, UI fixes 2026-02-04 22:07:39 -08:00
Api.swift feat: multi-password auth, structured error codes, missing API endpoints 2026-03-21 10:31:39 +00:00
BeaconBanList.swift refactor: consolidate UUID formatting into shared String extension 2026-03-21 10:02:58 +00:00
BeaconProvisioner.swift refactor: v2 BeaconProvisioner — prevention over recovery 2026-03-22 03:57:02 +00:00
BeaconScanner.swift refactor: consolidate UUID formatting into shared String extension 2026-03-21 10:02:58 +00:00
BeaconShardPool.swift Add ios-marketing idiom, iPad orientations, launch screen 2026-02-10 19:38:11 -08:00
BLEBeaconScanner.swift Migrate API endpoints from CFML to PHP 2026-03-14 17:17:02 -07:00
BusinessListView.swift Add ios-marketing idiom, iPad orientations, launch screen 2026-02-10 19:38:11 -08:00
DebugLog.swift Fix DX-Smart provisioning protocol and add debug logging 2026-03-04 20:01:12 -08:00
DevBanner.swift Rewrite app: simplified architecture, CoreLocation beacon scanning, UI fixes 2026-02-04 22:07:39 -08:00
Info.plist Migrate API endpoints from CFML to PHP 2026-03-14 17:17:02 -07:00
LoginView.swift Rewrite app: simplified architecture, CoreLocation beacon scanning, UI fixes 2026-02-04 22:07:39 -08:00
payfrit-favicon-light-outlines.svg Rewrite app: simplified architecture, CoreLocation beacon scanning, UI fixes 2026-02-04 22:07:39 -08:00
PayfritBeaconApp.swift Fix DX-Smart provisioning protocol and add debug logging 2026-03-04 20:01:12 -08:00
RootView.swift Add ios-marketing idiom, iPad orientations, launch screen 2026-02-10 19:38:11 -08:00
ScanView.swift fix: show live provisioning progress + improve disconnect resilience 2026-03-22 02:38:36 +00:00
ServicePointListView.swift refactor: consolidate UUID formatting into shared String extension 2026-03-21 10:02:58 +00:00
UUIDFormatting.swift refactor: consolidate UUID formatting into shared String extension 2026-03-21 10:02:58 +00:00