Skip to content

parseNotification invalid sequence #29

Description

@leonhomedigy

I'm getting parseNotification invalid sequence most of the time when I call client.configure(param).

Here is the sequence of events:

didDiscoverCharacteristicsForService get write char
didDiscoverCharacteristicsForService get notify char
parseNotification invalid sequence
parseNotification failed
receiveAck expect: 0

Before calling configure, I made sure the gattPrepared status is StatusSuccess

Here is how I set up the configure params.
let params = BlufiConfigureParams() params.opMode = OpModeSta params.staSsid = networkInfo.ssid params.staPassword = networkInfo.pwd

And here is how I'm calling it
return client.rx .configure(param: getConfigParam(networkInfo)) .take(1) .map { $0 == StatusSuccess }

Note that I'm wrapping Blufi delegates in RxSwift, but I don't think that is causing the issue. I haven't had the chance to dig deeper into the - (NotifyStatus)parseNotification:(NSData *)response notification:(BlufiNotifyData *)notification method. I'm hoping someone can shed some light on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions