yanshouwang / bluetooth_low_energy

A Flutter plugin for controlling the bluetooth low energy.
https://pub.dev/packages/bluetooth_low_energy
MIT License
50 stars 16 forks source link

Example project is not working on Raspbian Linux. #28

Closed hurelhuyag closed 10 months ago

hurelhuyag commented 1 year ago

Raspberry Pi 4B is supposed to have Bluetooth LE. I tried to run the example project from bluetooth_low_enery/example directory. The example app running without any error. But the screen has no widgets.

yanshouwang commented 1 year ago

This is caused by the PeripheralManager api is unimplemented on Linux, just comment the await peripheralManager.setUp() in onStartUp method should resolve this error.

void onStartUp() async {
  Logger.root.onRecord.listen(onLogRecord);
  WidgetsFlutterBinding.ensureInitialized();
  await centralManager.setUp();
  // await peripheralManager.setUp();
  runApp(const MyApp());
}
github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 30 days with no activity.