Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: iOS 17: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. #639

Closed
1 task done
hau1610 opened this issue Oct 23, 2023 · 2 comments
Closed
1 task done
Labels
help Questions, help, observations, or possible bugs

Comments

@hau1610
Copy link

hau1610 commented Oct 23, 2023

Requirements

  • I've looked at the README 'Common Problems' section

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.20.4

Flutter Version

3.10.4

What OS?

iOS, macOS

OS Version

xcode 15, mac os 14.0 (23A344), ios 17.0.3

Bluetooth Module

arduino

What is your problem?

Unhandled Exception: FlutterBluePlusException: writeCharacteristic

Logs

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error.
#0      BluetoothCharacteristic.write (package:flutter_blue_plus/src/bluetooth_characteristic.dart:228:9)
<asynchronous suspension>
@hau1610 hau1610 added the bug Something isn't working label Oct 23, 2023
@chipweinberger chipweinberger changed the title [Bug]: [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. #0 BluetoothCharacteristic.write (package:flutter_blue_plus/src/bluetooth_characteristic.dart:228:9) <asynchronous suspension> [Bug]: iOS: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. Oct 23, 2023
@chipweinberger chipweinberger changed the title [Bug]: iOS: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. [Help]: iOS: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. Oct 24, 2023
@chipweinberger chipweinberger added help Questions, help, observations, or possible bugs and removed bug Something isn't working labels Oct 24, 2023
@chipweinberger chipweinberger changed the title [Help]: iOS: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. [Help]: iOS 17: FlutterBluePlusException: writeCharacteristic: (code: 14) Unlikely error. Oct 25, 2023
Repository owner deleted a comment from kiranruth Nov 3, 2023
@chipweinberger
Copy link
Owner

chipweinberger commented Dec 19, 2023

This error code originates from your BLE device. It is one of the BLE GATT codes that your device is allowed to return.

It usually means your device is malfunctioning, or you are sending an invalid request, but the exact meaning depends on your BLE device.

#define BLE_ATT_ERR_INVALID_HANDLE          0x01
#define BLE_ATT_ERR_READ_NOT_PERMITTED      0x02
#define BLE_ATT_ERR_WRITE_NOT_PERMITTED     0x03
#define BLE_ATT_ERR_INVALID_PDU             0x04
#define BLE_ATT_ERR_INSUFFICIENT_AUTHEN     0x05
#define BLE_ATT_ERR_REQ_NOT_SUPPORTED       0x06
#define BLE_ATT_ERR_INVALID_OFFSET          0x07
#define BLE_ATT_ERR_INSUFFICIENT_AUTHOR     0x08
#define BLE_ATT_ERR_PREPARE_QUEUE_FULL      0x09
#define BLE_ATT_ERR_ATTR_NOT_FOUND          0x0a
#define BLE_ATT_ERR_ATTR_NOT_LONG           0x0b
#define BLE_ATT_ERR_INSUFFICIENT_KEY_SZ     0x0c
#define BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN  0x0d
#define BLE_ATT_ERR_UNLIKELY                0x0e // <----- its this error
#define BLE_ATT_ERR_INSUFFICIENT_ENC        0x0f
#define BLE_ATT_ERR_UNSUPPORTED_GROUP       0x10
#define BLE_ATT_ERR_INSUFFICIENT_RES        0x11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions, help, observations, or possible bugs
Projects
None yet
Development

No branches or pull requests

2 participants