You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private func writeGetAllHeartUser1Measurements() {
let OP_CODE_REPORT_STORED_RECORDS: UInt8 = 0x02
let OPERATOR_SENDING_RECORD_1: UInt8 = 0x00
let OPERATOR_SENDING_RECORD_2: UInt8 = 0x00
let command = [OP_CODE_REPORT_STORED_RECORDS, OPERATOR_SENDING_RECORD_1, OPERATOR_SENDING_RECORD_2]
bluejay.write(to: writeHeartRateCharacteristic, value: Data(command), type: .withoutResponse) { result in
switch result {
case .success:
Logger.shared.log("Write to sensor location is successful.")
self.listenHeartRateData()
case .failure(let error):
print("Failed to write sensor location with error: \(error.localizedDescription)")
}
}
}`
Actual Result:
Write to sensor location is successful.
failure(Bluejay.BluejayError.notConnected)
Failed to listen to heart rate with error: Not connected to a peripheral
Expected Result:
Retrieve data upon successful write. Also, do not disconnect device.
Device, Build, OS:
The text was updated successfully, but these errors were encountered:
Summary:
Device: Buerer BM96
The connection is lost when attempting to write to the characteristic.
`let writeHeartRateCharacteristic = CharacteristicIdentifier(
uuid: BM96CharacteristicUUID.heartServiceUUID.rawValue,
service: ServiceIdentifier(uuid: BM96CharacteristicUUID.customServiceUUID.rawValue)
)
Actual Result:
Write to sensor location is successful.
failure(Bluejay.BluejayError.notConnected)
Failed to listen to heart rate with error: Not connected to a peripheral
Expected Result:
Retrieve data upon successful write. Also, do not disconnect device.
Device, Build, OS:
The text was updated successfully, but these errors were encountered: