WebBluetoothCG / web-bluetooth

Bluetooth support for the Web.
http://www.w3.org/community/web-bluetooth/
Other
1.39k stars 188 forks source link

Make RSSI non optional #312

Open g-ortuno opened 8 years ago

g-ortuno commented 8 years ago

I think every Advertisement packet comes with an RSSI (Android, macOS). We should mark the rssi property as always present in BluetoothAdvertisingEvent

jyasskin commented 8 years ago

Windows? If so, great!

g-ortuno commented 8 years ago

In 8.1 there are no advertisements because there is no support for scanning. The windows 10 APIs do include RSSI: https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.bluetooth.advertisement.bluetoothleadvertisementreceivedeventargs.aspx

beaufortfrancois commented 8 years ago

Shall we include this in our Windows implementation status notes?

 * [Windows](https://crbug.com/507419): Requires Windows 8.1.
   * To discover devices the user hasn't yet manually paired, requires Windows 10.
+  * The Scanning API will require Windows 10.
mkv123 commented 6 years ago

Btw, if RSSI is not available on some platform, there is a magic value for indicating this specified in the Core Bluetooth spec, RSSI +127. (Admittedly, this is likely intended to be used when the RSSI is temporarily not available.) The magic value can be used both in the case when reading the RSSI of a scan result, as well as the case for reading a connection's RSSI.

Relevant parts of the spec: