chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Help]: Can't find Rasperry Pi Zero 2 Device #729

Closed MertSaygili closed 11 months ago

MertSaygili commented 11 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.30.3

Flutter Version

3.16.0

What OS?

Android

OS Version

13

Bluetooth Module

Rasperry Pi Zero 2

What is your problem?

After startScan() function i cannot find rasperry pi zero 2 device. But i can find other devices. I can see raspberry device on my android bluetooth settings but still I cannot find with startScan() flutter blue plus function. I can share my code if needed.

Logs

No logs
chipweinberger commented 11 months ago

it's probably bluetooth classic and not ble

MertSaygili commented 11 months ago

Raspberry pi zero 2 supports ble.

chipweinberger commented 11 months ago

can you find it using other scanner apps?

MertSaygili commented 11 months ago

I tried using another BLE scanner app (app). Initially, I couldn't detect the Raspberry Pi. Subsequently, I installed BlueZ on the Raspberry Pi and followed the commands outlined in this article. Now, I can successfully identify the Raspberry Pi device using the scanDevice() function. However, there is something that I did not understand in the article:

When prompted if this should be the primary service, say yes.

Then create our characteristics:

[bluetooth]# register-characteristic 0x1234 read

Enter the initial value you want for that characteristic:

[bluetooth]# register-characteristic 0x4567 read,write

What should I write as the initial value for the 'read' characteristic? Additionally, how can I enable the read, write, and notify features on the Raspberry Pi?"

Thanks for your fast response :)

chipweinberger commented 11 months ago

I'm not familiar with BlueZ, sorry I cannot help!

I think you can set it to anything you want.