yanshouwang / bluetooth_low_energy

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

May not be an issue: Connection requesting PIN #52

Open klipsedeville opened 8 months ago

klipsedeville commented 8 months ago

When connecting 2 android phones (not tested on iOS yet), the devices show a system pair and connect dialog. When I click the pair option and confirm on the other device, it shows and error that the PIN is invalid.

Is it possible to connect devices, discover characteristics and read/write between them without pairing or having the system dialog pop up? I want to achieve this with zero user involvement, the devices silently connect to each other and exchange data.

yanshouwang commented 8 months ago

BLE can communicate with other devices without bonding, and this plugin doesn't provide bind method, If you see the pair dialog when connect, you should check your peripheral side to change the connection mode to Just works

klipsedeville commented 8 months ago

BLE can communicate with other devices without bonding, and this plugin doesn't provide bind method, If you see the pair dialog when connect, you should check your peripheral side to change the connection mode to Just works

Thanks for the reply. How do I set the peripheral android device side to the Just works connection mode using your plugin?

yanshouwang commented 8 months ago

Thanks for the reply. How do I set the peripheral android device side to the Just works connection mode using your plugin?

There is nothing to do with this plugin,I'm sure I can communicate between central and peripheral use the example without pair dialog.

github-actions[bot] commented 7 months ago

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

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] commented 4 days ago

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