Closed f22-anurag closed 7 months ago
I dont understand what that means
Connecting to the custom device and performing the "indicate" and "write without response" operations. It is not working for IOS devices. But when doing the operation with the Android device it is working fine.
Iphone Logs:
flutter: [FBP] \^[[1;30m[[ OnMtuChanged ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, error_string: success, error_code: 0, mtu: 2<…>
flutter: [FBP] \^[[1;30m<discoverServices>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnMtuChanged ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, error_string: success, error_code: 0, mtu: 51<…>
flutter: [FBP] \^[[1;30m[[ OnDiscoveredServices ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, services: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristics: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c300, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c300, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c301, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c301, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c302, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c302, properties: {notify: 0, indicate_encryption_required: 0, write: 1, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c303, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c303, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 1, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [], characteristic_uuid: c304, properties: {notify: 0, indicate_encryption_required: 0, write: 1, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c305, descriptor_uuid: 2902, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c305, properties: {notify: 1, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c306, descriptor_uuid: 2902, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c306, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 1, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c307, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c307, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}], is_primary: true, service_uuid: a002, included_services: []}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristics: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c400, descriptor_uuid: 2901, service_uuid: a003, secondary_service_uuid: null}], characteristic_uuid: c400, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a003, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c401, descriptor_uuid: 2901, service_uuid: a003, secondary_service_uuid: null}], characteristic_uuid: c401, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a003, secondary_service_uuid: null}], is_primary: true, service_uuid: a003, included_services: []}], error_string: success, error_code: <…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: tru<…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnDescriptorWritten ]]\^[[0m result: \^[[1;33m{error_string: success, remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c306, success: 1, value: 02000000, error_code: 0, service_uuid: a002, descriptor_uuid: 290<…>
Another exception was thrown: setState() or markNeedsBuild() called during build.
Another exception was thrown: setState() or markNeedsBuild() called during build.
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: tru<…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnDescriptorWritten ]]\^[[0m result: \^[[1;33m{error_string: success, remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c306, success: 1, value: 02000000, error_code: 0, service_uuid: a002, descriptor_uuid: 290<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c303, write_type: 1, allow_long_write: 0, value: 3939393<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnCharacteristicWritten ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c303, success: 1, value: , error_code: 0, service_uuid: a002, error_string: succes<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c303, write_type: 1, allow_long_write: 0, value: 3939393<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnCharacteristicWritten ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c303, success: 1, value: , error_code: 0, service_uuid: a002, error_string: succes<…>
Android Logs:
I/flutter (11420): [FBP] <discoverServices> args: 90:38:0C:B0:49:7A
D/[FBP-Android](11420): [FBP] onMethodCall: discoverServices
D/BluetoothGatt(11420): discoverServices() - device: 90:38:0C:B0:49:7A
I/flutter (11420): [FBP] <discoverServices> result: true
D/BluetoothGatt(11420): onConnectionUpdated() - Device=90:38:0C:B0:49:7A interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt(11420): onSearchComplete() = Device=90:38:0C:B0:49:7A Status=0
D/[FBP-Android](11420): [FBP] onServicesDiscovered:
D/[FBP-Android](11420): [FBP] count: 4
D/[FBP-Android](11420): [FBP] status: 0GATT_SUCCESS
I/flutter (11420): [FBP] [[ OnDiscoveredServices ]] result: {error_string: GATT_SUCCESS, success: 1, remote_id: 90:38:0C:B0:49:7A, error_code: 0, services: [{included_services: [], characteristics: [{descriptors: [{service_uuid: 1801, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, characteristic_uuid: 2a05}], service_uuid: 1801, remote_id: 90:38:0C:B0:49:7A, characteristic_uuid: 2a05, properties: {broadcast: 0, write_without_response: 0, notify_encryption_required: 0, read: 0, authenticated_signed_writes: 0, extended_properties: 0, indicate: 1, indicate_encryption_required: 0, write: 0, notify: 0}}], service_uuid: 1801, is_primary: 1, remote_id: 90:38:0C:B0:49:7A}, {included_services: [], characteristics: [{descriptors: [], service_uuid: 1800, remote_id: 90:38:0C:B0:49:7A, characteristic_uuid: 2a00, properties: {broadcast: 0, write_without_response: 0, notify_encryption_required: 0, read: 1, authenticated_signed_writes: 0, extended_properties: 0, indicate: 0, indicate_encryption_required: 0, write: 0, n
D/BluetoothGatt(11420): onConnectionUpdated() - Device=90:38:0C:B0:49:7A interval=39 latency=0 timeout=500 status=0
I/flutter (11420): [FBP] <setNotifyValue> args: {remote_id: 90:38:0C:B0:49:7A, service_uuid: 1801, secondary_service_uuid: null, characteristic_uuid: 2a05, force_indications: false, enable: true}
D/[FBP-Android](11420): [FBP] onMethodCall: setNotifyValue
D/BluetoothGatt(11420): setCharacteristicNotification() - uuid: 00002a05-0000-1000-8000-00805f9b34fb enable: true
I/flutter (11420): [FBP] <setNotifyValue> result: true
D/[FBP-Android](11420): [FBP] onDescriptorWrite:
D/[FBP-Android](11420): [FBP] chr: 2a05
D/[FBP-Android](11420): [FBP] desc: 2902
D/[FBP-Android](11420): [FBP] status: GATT_SUCCESS (0)
I/flutter (11420): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_SUCCESS, service_uuid: 1801, success: 1, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, error_code: 0, characteristic_uuid: 2a05, value: 0200}
I/flutter (11420): [FBP] <setNotifyValue> args: {remote_id: 90:38:0C:B0:49:7A, service_uuid: 1801, secondary_service_uuid: null, characteristic_uuid: 2a05, force_indications: false, enable: true}
D/[FBP-Android](11420): [FBP] onMethodCall: setNotifyValue
D/BluetoothGatt(11420): setCharacteristicNotification() - uuid: 00002a05-0000-1000-8000-00805f9b34fb enable: true
I/flutter (11420): [FBP] <setNotifyValue> result: true
D/[FBP-Android](11420): [FBP] onDescriptorWrite:
D/[FBP-Android](11420): [FBP] chr: 2a05
D/[FBP-Android](11420): [FBP] desc: 2902
D/[FBP-Android](11420): [FBP] status: GATT_SUCCESS (0)
I/flutter (11420): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_SUCCESS, service_uuid: 1801, success: 1, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, error_code: 0, characteristic_uuid: 2a05, value: 0200}
I/flutter (11420): [FBP] <setNotifyValue> args: {remote_id: 90:38:0C:B0:49:7A, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: true}
D/[FBP-Android](11420): [FBP] onMethodCall: setNotifyValue
D/BluetoothGatt(11420): setCharacteristicNotification() - uuid: 0000c306-0000-1000-8000-00805f9b34fb enable: true
I/flutter (11420): [FBP] <setNotifyValue> result: true
D/[FBP-Android](11420): [FBP] onDescriptorWrite:
D/[FBP-Android](11420): [FBP] chr: c306
D/[FBP-Android](11420): [FBP] desc: 2902
D/[FBP-Android](11420): [FBP] status: GATT_SUCCESS (0)
I/flutter (11420): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_SUCCESS, service_uuid: a002, success: 1, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, error_code: 0, characteristic_uuid: c306, value: 0200}
D/[FBP-Android](11420): [FBP] onCharacteristicChanged:
D/[FBP-Android](11420): [FBP] chr: c306
I/flutter (11420): [FBP] [[ OnCharacteristicReceived ]] result: {error_string: GATT_SUCCESS, service_uuid: a002, success: 1, remote_id: 90:38:0C:B0:49:7A, error_code: 0, characteristic_uuid: c306, value: 544c4b3132303938}
V/ActivityThread(11420): scheduleReceiver info = ActivityInfo{f109a9b com.google.firebase.iid.FirebaseInstanceIdReceiver} intent = Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1080010 pkg=com.f22labs.telekonnectors cmp=com.f22labs.telekonnectors/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) } sync = true hasCode = 128918717
W/OplusExSystemServiceHelper(11420): checkOplusExSystemService intent getComponent is null
E/FA (11420): Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
V/ActivityThread(11420): scheduleReceiver info = ActivityInfo{ffb534e io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver} intent = Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1080010 pkg=com.f22labs.telekonnectors cmp=com.f22labs.telekonnectors/io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver (has extras) } sync = true hasCode = 212143959
D/FLTFireMsgReceiver(11420): broadcast received for message
I/flutter (11420): {Instance of 'RemoteMessage', received notification }
D/CompatibilityChangeReporter(11420): Compat change id reported: 160794467; UID 10438; state: ENABLED
E/FA (11420): Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
I/flutter (11420): [FBP] <connect> args: {remote_id: 90:38:0C:B0:49:7A, auto_connect: 0}
D/[FBP-Android](11420): [FBP] onMethodCall: connect
D/[FBP-Android](11420): [FBP] already connected
I/flutter (11420): [FBP] <connect> result: false
Another exception was thrown: setState() or markNeedsBuild() called during build.
W/OnBackInvokedCallback(11420): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback(11420): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
I/flutter (11420): [FBP] <discoverServices> args: 90:38:0C:B0:49:7A
D/[FBP-Android](11420): [FBP] onMethodCall: discoverServices
D/BluetoothGatt(11420): discoverServices() - device: 90:38:0C:B0:49:7A
D/BluetoothGatt(11420): onSearchComplete() = Device=90:38:0C:B0:49:7A Status=0
D/[FBP-Android](11420): [FBP] onServicesDiscovered:
D/[FBP-Android](11420): [FBP] count: 4
D/[FBP-Android](11420): [FBP] status: 0GATT_SUCCESS
I/flutter (11420): [FBP] <discoverServices> result: true
I/flutter (11420): [FBP] [[ OnDiscoveredServices ]] result: {error_string: GATT_SUCCESS, success: 1, remote_id: 90:38:0C:B0:49:7A, error_code: 0, services: [{included_services: [], characteristics: [{descriptors: [{service_uuid: 1801, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, characteristic_uuid: 2a05}], service_uuid: 1801, remote_id: 90:38:0C:B0:49:7A, characteristic_uuid: 2a05, properties: {broadcast: 0, write_without_response: 0, notify_encryption_required: 0, read: 0, authenticated_signed_writes: 0, extended_properties: 0, indicate: 1, indicate_encryption_required: 0, write: 0, notify: 0}}], service_uuid: 1801, is_primary: 1, remote_id: 90:38:0C:B0:49:7A}, {included_services: [], characteristics: [{descriptors: [], service_uuid: 1800, remote_id: 90:38:0C:B0:49:7A, characteristic_uuid: 2a00, properties: {broadcast: 0, write_without_response: 0, notify_encryption_required: 0, read: 1, authenticated_signed_writes: 0, extended_properties: 0, indicate: 0, indicate_encryption_required: 0, write: 0, n
I/flutter (11420): [FBP] <setNotifyValue> args: {remote_id: 90:38:0C:B0:49:7A, service_uuid: 1801, secondary_service_uuid: null, characteristic_uuid: 2a05, force_indications: false, enable: true}
D/[FBP-Android](11420): [FBP] onMethodCall: setNotifyValue
D/BluetoothGatt(11420): setCharacteristicNotification() - uuid: 00002a05-0000-1000-8000-00805f9b34fb enable: true
I/flutter (11420): [FBP] <setNotifyValue> result: true
D/[FBP-Android](11420): [FBP] onDescriptorWrite:
D/[FBP-Android](11420): [FBP] chr: 2a05
D/[FBP-Android](11420): [FBP] desc: 2902
D/[FBP-Android](11420): [FBP] status: GATT_SUCCESS (0)
I/flutter (11420): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_SUCCESS, service_uuid: 1801, success: 1, remote_id: 90:38:0C:B0:49:7A, descriptor_uuid: 2902, error_code: 0, characteristic_uuid: 2a05, value: 0200}
I/flutter (11420): [FBP] <setNotifyValue> args: {remote_id: 90:38:0C:B0:49:7A, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: true}
flutter: [FBP] \^[[1;30m[[ OnMtuChanged ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, error_string: success, error_code: 0, mtu: 2<…>
flutter: [FBP] \^[[1;30m<discoverServices>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnMtuChanged ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, error_string: success, error_code: 0, mtu: 51<…>
flutter: [FBP] \^[[1;30m[[ OnDiscoveredServices ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, success: 1, services: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristics: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c300, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c300, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c301, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c301, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c302, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c302, properties: {notify: 0, indicate_encryption_required: 0, write: 1, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c303, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c303, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 1, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [], characteristic_uuid: c304, properties: {notify: 0, indicate_encryption_required: 0, write: 1, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c305, descriptor_uuid: 2902, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c305, properties: {notify: 1, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c306, descriptor_uuid: 2902, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c306, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 0, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 1, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c307, descriptor_uuid: 2901, service_uuid: a002, secondary_service_uuid: null}], characteristic_uuid: c307, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a002, secondary_service_uuid: null}], is_primary: true, service_uuid: a002, included_services: []}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristics: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c400, descriptor_uuid: 2901, service_uuid: a003, secondary_service_uuid: null}], characteristic_uuid: c400, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a003, secondary_service_uuid: null}, {remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, descriptors: [{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, characteristic_uuid: c401, descriptor_uuid: 2901, service_uuid: a003, secondary_service_uuid: null}], characteristic_uuid: c401, properties: {notify: 0, indicate_encryption_required: 0, write: 0, read: 1, write_without_response: 0, notify_encryption_required: 0, broadcast: 0, extended_properties: 0, indicate: 0, authenticated_signed_writes: 0}, service_uuid: a003, secondary_service_uuid: null}], is_primary: true, service_uuid: a003, included_services: []}], error_string: success, error_code: <…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: tru<…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnDescriptorWritten ]]\^[[0m result: \^[[1;33m{error_string: success, remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c306, success: 1, value: 02000000, error_code: 0, service_uuid: a002, descriptor_uuid: 290<…>
Another exception was thrown: setState() or markNeedsBuild() called during build.
Another exception was thrown: setState() or markNeedsBuild() called during build.
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c306, force_indications: false, enable: tru<…>
flutter: [FBP] \^[[1;30m<setNotifyValue>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnDescriptorWritten ]]\^[[0m result: \^[[1;33m{error_string: success, remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c306, success: 1, value: 02000000, error_code: 0, service_uuid: a002, descriptor_uuid: 290<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c303, write_type: 1, allow_long_write: 0, value: 3939393<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnCharacteristicWritten ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c303, success: 1, value: , error_code: 0, service_uuid: a002, error_string: succes<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m args: \^[[1;35m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, service_uuid: a002, secondary_service_uuid: null, characteristic_uuid: c303, write_type: 1, allow_long_write: 0, value: 3939393<…>
flutter: [FBP] \^[[1;30m<writeCharacteristic>\^[[0m result: \^[[1;33mtr<…>
flutter: [FBP] \^[[1;30m[[ OnCharacteristicWritten ]]\^[[0m result: \^[[1;33m{remote_id: DDF76B9B-980F-BAA4-4C53-9DB740CAC01D, secondary_service_uuid: null, characteristic_uuid: c303, success: 1, value: , error_code: 0, service_uuid: a002, error_string: succes<…>
thanks. The logs are very different, hard to tell what is supposed to happen.
Since the MTU size of the device is 23 bytes, can this be an issue with the persisting problem in ios? As mentioned in one of the issues related to MTU.
yes could be an mtu problem
ios sets mtu depending on its own rules
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.31.0
Flutter Version
3.19.3
What OS?
iOS, macOS
OS Version
17.4.1
Bluetooth Module
Not sure
What is your problem?
Not able to perform indicate and writeWithoutResponse operation on IOS, working fine on Android. Any suggestion on how to resolve that? I have also tried to downgrade the fluttter_blue_plus but not luck.
Logs