Skip to content

feat: expose Classic Bluetooth discovery metadata - #43

Merged
sheehanmunim merged 1 commit into
mainfrom
agent/expose-classic-device-metadata
Aug 4, 2026
Merged

feat: expose Classic Bluetooth discovery metadata#43
sheehanmunim merged 1 commit into
mainfrom
agent/expose-classic-device-metadata

Conversation

@sheehanmunim

Copy link
Copy Markdown
Member

What changed

  • expose RSSI, Bluetooth class values, service-class flags, and cached SDP UUIDs on classicDeviceFound
  • add exported ClassicDevice and ClassicBluetoothClass TypeScript interfaces
  • document availability and reliability limits of Android classification metadata

Why

Applications such as POS and label-printing clients need native hints to distinguish likely printers from unrelated Classic Bluetooth devices without relying only on device names.

Validation

  • npm run build
  • ./gradlew :app:compileDebugKotlin against Android API 36
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 4, 2026 05:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Android Classic Bluetooth discovery event payload and its TypeScript surface so apps can make better device-type inferences (e.g., likely printers) using native discovery metadata beyond just device name.

Changes:

  • Expands the classicDeviceFound event payload to include optional RSSI, Bluetooth Class of Device (CoD) info, service-class flags, and cached SDP UUIDs.
  • Adds exported TypeScript interfaces (ClassicDevice, ClassicBluetoothClass) and updates the BluetoothEventMap typing accordingly.
  • Updates README documentation to describe the new fields and their reliability/availability constraints.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/index.ts Exports new Classic discovery interfaces and updates classicDeviceFound event typing to ClassicDevice.
README.md Documents new classicDeviceFound metadata fields and provides a usage example plus reliability notes.
android/src/main/java/com/munimbluetooth/HybridMunimBluetooth.kt Emits enriched Classic discovery payload including RSSI, BluetoothClass details, and cached UUIDs (with SecurityException handling for UUID access).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sheehanmunim
sheehanmunim merged commit 0f2c952 into main Aug 4, 2026
3 checks passed
@sheehanmunim
sheehanmunim deleted the agent/expose-classic-device-metadata branch August 4, 2026 05:28
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants