Allow optional RSSI values for LE advertisement reports that contain invalid RSSI values (-127 ≤ N ≤ +20).
The Bluetooth Core Specifications v4.0 - v5.1 allow for 127 to represent RSSI is not available, but we will treat any invalid RSSI value as N/A to allow for wider compatibility with HCI implementations.
Bluetooth Core Specification Version 5.0 page 1194
What does this PR Do?
Allow optional RSSI values for LE advertisement reports that contain invalid RSSI values (
-127 ≤ N ≤ +20
). The Bluetooth Core Specifications v4.0 - v5.1 allow for127
to representRSSI is not available
, but we will treat any invalid RSSI value as N/A to allow for wider compatibility with HCI implementations.Bluetooth Core Specification Version 5.0 page 1194
Where should the reviewer start?
HCILEAdvertisingReport.swift
Sweet giphy showing how you feel about this PR