Skip to content

Commit 3601846

Browse files
committed
missing advertisementData fields
1 parent d1cffc5 commit 3601846

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

iOS/classes/BleExtensions.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ extension ScannedPeripheral {
4949

5050

5151
let advertisementDataDict: [AnyHashable: Any] = [
52+
"id": peripheral.identifier.uuidString,
53+
"name": peripheral.name as Any,
54+
"rssi": rssi,
55+
"mtu": mtu,
56+
5257
"localName": advertisementData.localName as Any,
5358
"manufacturerData": manufacturerData as Any,
5459
"serviceData": serviceData as Any,
@@ -67,6 +72,15 @@ extension ScannedPeripheral {
6772
"name": peripheral.name as Any,
6873
"rssi": rssi,
6974
"mtu": mtu,
75+
76+
"manufacturerData": manufacturerData as Any,
77+
"serviceData": serviceData as Any,
78+
"serviceUUIDs": serviceUUIDs as Any,
79+
"localName": advertisementData.localName as Any,
80+
"txPowerLevel": advertisementData.txPowerLevel as Any,
81+
"solicitedServiceUUIDs": solicitedServiceUUIDs as Any,
82+
"isConnectable": advertisementData.isConnectable as Any,
83+
"overflowServiceUUIDs": overflowServiceUUIDs as Any,
7084
"rawScanRecord": advertisementDataBase64 as Any
7185
]
7286
}

0 commit comments

Comments
 (0)