Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing advertising data fields #1143

Merged
merged 4 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion ios/MultiplatformBleAdapter/BleExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ extension ScannedPeripheral {


let advertisementDataDict: [AnyHashable: Any] = [
"id": peripheral.identifier.uuidString,
"name": peripheral.name as Any,
"rssi": rssi,
"mtu": mtu,

"localName": advertisementData.localName as Any,
"manufacturerData": manufacturerData as Any,
"serviceData": serviceData as Any,
"serviceUUIDs": serviceUUIDs as Any,
"txPowerLevel": advertisementData.txPowerLevel as Any,
"isConnectable": advertisementData.isConnectable as Any,
"solicitedServiceUUIDs": solicitedServiceUUIDs as Any,
"isConnectable": advertisementData.isConnectable as Any,
"overflowServiceUUIDs": overflowServiceUUIDs as Any
]

Expand All @@ -67,6 +72,15 @@ extension ScannedPeripheral {
"name": peripheral.name as Any,
"rssi": rssi,
"mtu": mtu,

"localName": advertisementData.localName as Any,
"manufacturerData": manufacturerData as Any,
"serviceData": serviceData as Any,
"serviceUUIDs": serviceUUIDs as Any,
"txPowerLevel": advertisementData.txPowerLevel as Any,
"solicitedServiceUUIDs": solicitedServiceUUIDs as Any,
"isConnectable": advertisementData.isConnectable as Any,
"overflowServiceUUIDs": overflowServiceUUIDs as Any,
"rawScanRecord": advertisementDataBase64 as Any
]
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
"engines": {
"node": ">= 16.0.0"
},
"packageManager": "^[email protected]",
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
Expand Down
Loading