Skip to content

Feature Request - Indications and Notifications #268

Description

@beachcitiessoftware

Summary:
I need to be able to distinguish between incoming BLE indications and incoming BLE notifications. I can't find a way to do this now, with the current BlueJay::listen methods. I would greatly appreciate having this feature added. You could use the following logic, then expose a new listen method, or extend ReadResult to indicate which it is.

func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {

        let isIndication = characteristic.isNotifying && characteristic.properties.contains(CBCharacteristicProperties.indicate) && !characteristic.properties.contains(CBCharacteristicProperties.notify)
        let isNotification = characteristic.isNotifying && characteristic.properties.contains(CBCharacteristicProperties.notify) && !characteristic.properties.contains(CBCharacteristicProperties.indicate)

// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions