jlinear / DispatchApp

Off-the-grid communication app based on BlueNet.
MIT License
0 stars 0 forks source link

Maintain multiple connections #4

Open jlinear opened 6 years ago

jlinear commented 6 years ago

It seems that the current connect() method can only maintain one connection at a time, to connect each device in a for loop is not the way to maintain multiple connections. Each connection will need a gatt to maintain, so that this connection will not collide with the rest. refer to : https://stackoverflow.com/questions/35392762/android-ble-connecting-to-multiple-devices-at-once

jtsiva commented 6 years ago

Already working on it.

On Tue, Jun 5, 2018, 4:18 PM Jerry Yang notifications@github.com wrote:

It seems that the current connect() method can only maintain one connection at a time, to connect each device in a for loop is not the way to maintain multiple connections. Each connection will need a gatt to maintain, so that this connection will not collide with the rest. refer to : https://stackoverflow.com/questions/35392762/android-ble-connecting-to-multiple-devices-at-once

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jlinear/DispatchApp/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AILTQIzIGY9BSmSGxrN-wTgZ3QBNTJzwks5t5ud5gaJpZM4UbfOk .

jtsiva commented 6 years ago

This is implemented, but connection establishment is unreliable and is only made worse by multiple devices trying to go through the discovery/connection process at the same time.

Open a new issue?