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

Failed to handle method call && dvertising data too big #206

Open
runoob-coder opened this issue Oct 21, 2024 · 0 comments
Open

Failed to handle method call && dvertising data too big #206

runoob-coder opened this issue Oct 21, 2024 · 0 comments

Comments

@runoob-coder
Copy link

i cannot start advertusung on Android:

Screenshot_20241021-222122

D/BluetoothAdapter( 3356): isLeEnabled(): ON
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): Failed to handle method call
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): java.lang.IllegalArgumentException: Advertising data too big
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:379)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:309)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralManager.startSet(FlutterBlePeripheralManager.kt:197)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralPlugin.startPeripheral(FlutterBlePeripheralPlugin.kt:260)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralPlugin.onMethodCall(FlutterBlePeripheralPlugin.kt:106)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.os.Handler.handleCallback(Handler.java:793)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.os.Looper.loop(Looper.java:164)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at android.app.ActivityThread.main(ActivityThread.java:6496)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/MethodChannel#dev.steenbakker.flutter_ble_peripheral/ble_state( 3356): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
E/flutter ( 3356): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Advertising data too big, null, java.lang.IllegalArgumentException: Advertising data too big
E/flutter ( 3356): at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:379)
E/flutter ( 3356): at android.bluetooth.le.BluetoothLeAdvertiser.startAdvertisingSet(BluetoothLeAdvertiser.java:309)
E/flutter ( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralManager.startSet(FlutterBlePeripheralManager.kt:197)
E/flutter ( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralPlugin.startPeripheral(FlutterBlePeripheralPlugin.kt:260)
E/flutter ( 3356): at dev.steenbakker.flutter_ble_peripheral.FlutterBlePeripheralPlugin.onMethodCall(FlutterBlePeripheralPlugin.kt:106)
E/flutter ( 3356): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/flutter ( 3356): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/flutter ( 3356): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/flutter ( 3356): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter ( 3356): at android.os.Handler.handleCallback(Handler.java:793)
E/flutter ( 3356): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter ( 3356): at android.os.Looper.loop(Looper.java:164)
E/flutter ( 3356): at android.app.ActivityThread.main(ActivityThread.java:6496)
E/flutter ( 3356): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 3356): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/flutter ( 3356): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
E/flutter ( 3356): )
E/flutter ( 3356): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter ( 3356): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter ( 3356):
E/flutter ( 3356): #2 FlutterBlePeripheral.start (package:flutter_ble_peripheral/src/flutter_ble_peripheral.dart:100:9)
E/flutter ( 3356):
E/flutter ( 3356): #3 FlutterBlePeripheralExampleState.build. (package:eboard_displayer/peripheral/main.dart:163:19)
E/flutter ( 3356):
E/flutter ( 3356):
D/Region ( 3356): Region surface:queuebuffer (this=0x920536e0, count=1)
D/Region ( 3356): [ 0, 0, 0, 0]
D/Region ( 3356): Region surface:queuebuffer (this=0x920536e0, count=1)
D/Region ( 3356): [ 0, 0, 0, 0]
D/Region ( 3356): Region surface:queuebuffer (this=0x920536e0, count=1)
D/Region ( 3356): [ 0, 0, 0, 0]
D/Region ( 3356): Region surface:queuebuffer (this=0x920536e0, count=1)
D/Region ( 3356): [ 0, 0, 0, 0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant