Skip to content

Cannot disconnect socket mobile S700 #21

@huynhlqDev

Description

@huynhlqDev

I am implementing app functionality with connecting multiple peripherals and some case need disconnect socketMobile device.
I tried to use: (1)
captureHelper?.captureApi?.close() { result in
if result == SKTResult.E_NOERROR {
print("captureApi closed")
} else {
print("can not close captureApi: \(result)")
}
}
or (2)
captureHelper?.closeWithCompletionHandler() { result in
if result == SKTResult.E_NOERROR {
print("captureHelper closed")
} else {
print("can not close captureHelper: \(result)")
}
}

but it doesn't work. In addition, running both causes the app to print "captureHelper closed" then to crash (related to BLE).
Can only turn off mobile socket with physical button [off]. but don't know what is the cause

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