Alberto Iglesias Well-Known Member Licensed User Longtime User Dec 5, 2018 #1 Anyone know what is each byte received on MAP when PeripheralManager send the AdvertisingData? iOS APP Code: Copy Private peripheral As PeripheralManager peripheral.Initialize("peripheral") peripheral.Start("myiphone") After start AdvertisingData by peripheral.Start("myiphone") I need to know where is the Power byte to calculate the distance between devices. Can I get this power byte? or distance? Android APP Code: Copy Private Sub Manager_DeviceFound (Name As String, DeviceId As String, AdvertisingData As Map, RSSI As Double) '====> NEED TO IDENTIFY AdvertisingData bytes end sub I receiving this from iOS app: Thanks Alberto Iglesias Last edited: Dec 5, 2018
Anyone know what is each byte received on MAP when PeripheralManager send the AdvertisingData? iOS APP Code: Copy Private peripheral As PeripheralManager peripheral.Initialize("peripheral") peripheral.Start("myiphone") After start AdvertisingData by peripheral.Start("myiphone") I need to know where is the Power byte to calculate the distance between devices. Can I get this power byte? or distance? Android APP Code: Copy Private Sub Manager_DeviceFound (Name As String, DeviceId As String, AdvertisingData As Map, RSSI As Double) '====> NEED TO IDENTIFY AdvertisingData bytes end sub I receiving this from iOS app: Thanks Alberto Iglesias
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2018 #2 You are looking for this key: https://www.bluetooth.com/specifica...g.bluetooth.characteristic.tx_power_level.xml However it is not advertised as iOS doesn't support it: https://developer.apple.com/documen...anager/1393252-startadvertising?language=objc Upvote 0
You are looking for this key: https://www.bluetooth.com/specifica...g.bluetooth.characteristic.tx_power_level.xml However it is not advertised as iOS doesn't support it: https://developer.apple.com/documen...anager/1393252-startadvertising?language=objc
Alberto Iglesias Well-Known Member Licensed User Longtime User Dec 5, 2018 #3 Ok, thanks... But If don't provide by iOS I need to use just RSSI to calculate the distance, Am i right? Upvote 0
Ok, thanks... But If don't provide by iOS I need to use just RSSI to calculate the distance, Am i right?
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2018 #4 Yes. You can see the code in BeaconParser class. Upvote 0