Skip to content

[FIX]: Fixed the file transfer TX mode for bluetooth#29

Merged
Circuit-Overtime merged 22 commits into
mainfrom
fix/bt-set-flow
May 18, 2026
Merged

[FIX]: Fixed the file transfer TX mode for bluetooth#29
Circuit-Overtime merged 22 commits into
mainfrom
fix/bt-set-flow

Conversation

@Circuit-Overtime
Copy link
Copy Markdown
Member

@Circuit-Overtime Circuit-Overtime commented May 18, 2026

Changes Made

  • apps/bt/main.py: Populated paired-devices list from persistent bond store (self._bt.paired_devices()) instead of hardcoding an empty "Paired (0 / 3)" placeholder.
  • apps/bt/main.py: Made paired rows selectable and activatable — pressing A on a paired entry calls self._bt.forget(mac) to remove the bond, with a matching hint bar ("A=Forget").
  • oreoWare/bt.py: Fixed start_pair() to resolve addr_type and addr from live scan results instead of defaulting to PUBLIC (type 0), which silently broke every iPhone connection (iOS uses Random Resolvable addresses, type 1).
  • oreoWare/bt.py: Extended _parse_adv() to extract the Company Identifier from manufacturer-specific data (AD type 0xFF) and strip NUL-padded names — handles iOS name suppression and padding quirks.
  • oreoWare/bt.py: Added _MFR_TAGS lookup so unnamed peers get a brand label (e.g. "Apple device") instead of "(unknown)".
  • oreoWare/bt.py: Rewrote advertising to include GAP Appearance and a scan-response payload (full name + 128-bit service UUID); reduced interval from 500 ms to 200 ms for reliable iOS discovery, with graceful fallback on older MicroPython builds lacking resp_data.
  • oreoWare/bt.py: Stashed addr_type and raw addr bytes per scan entry so start_pair() can recover them even when the caller only passes a MAC.

Checklist

  • MicroPython compat: no f-strings with =, no pathlib, no walrus in modules that ship to flash
  • No secrets committed (.env, secrets.py)
  • Flashed + smoke-tested on hardware
  • Tested locally:

@elixpoo elixpoo added this to Dev May 18, 2026
@elixpoo elixpoo moved this to Todo in Dev May 18, 2026
@elixpoo elixpoo added the DEV Category: Dev label May 18, 2026
@Circuit-Overtime Circuit-Overtime merged commit 6fe2c7d into main May 18, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Dev May 18, 2026
@elixpoo
Copy link
Copy Markdown
Contributor

elixpoo commented May 18, 2026

[CHANGE LOG] 📋 Changelog updated for PR #29. View changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV Category: Dev

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants