Skip to content

'this.disconnect() no function!' error #229

@Adarkazanli96

Description

@Adarkazanli96

Hi, I have a class that extends BLEClient. I have it set to call this.disconnect() after receiving a total of 10 notifications from the onCharacteristicNotification() callback. However, whenever this.disconnect() gets called, I receive: "# Break: HeartRateClient.prototype.?: call disconnect: no function!' indicating that this.disconnect() is not a function. To try to debug this, I looked at the examples included in the sdk, and the only one that uses this.disconnect is the advertiser example which I can't really run since I can't even connect it to anything. My app does however disconnect automatically if i turn off the bluetooth server it's being connected to. But I would still like the ability to disconnect it myself by calling the method, please help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions