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

Proximity immediate and near are swapped #110

Open
philips77 opened this issue Sep 21, 2024 · 0 comments
Open

Proximity immediate and near are swapped #110

philips77 opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@philips77
Copy link
Member

public enum CBMProximity {
/// The device will have RSSI values around -40 dBm.
case near
/// The device will have RSSI values around -70 dBm.
case immediate
/// The device is far, will have RSSI values around -100 dBm.
case far
/// The device is out of range.
case outOfRange
internal var RSSI: Int {
switch self {
case .near: return -40
case .immediate: return -70
case .far: return -100
case .outOfRange: return 127
}
}
}

@philips77 philips77 added the bug Something isn't working label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant