kai-morich / SimpleBluetoothLeTerminal

Android terminal app for Bluetooth LE devices using custom serial profiles
MIT License
288 stars 111 forks source link

Disconnect from BLE peripheral does not allow indicates to go to new central #11

Closed balamurali27 closed 4 years ago

balamurali27 commented 4 years ago

I have a BLE server/peripheral that accepts connections. It sends a msg to a client on connect. It also automatically disconnects a client after 20 seconds. After disconnecting, new clients are able to connect since advertisements are started.

Now it gets tricky

I have phones A and B with the serial bluetooth monitor app (from play store)

Scenario 1

A connects to server first

then B connects to server

Scenario 2

B connects to server first

then A connects to server

balamurali27 commented 4 years ago

It was a problem with the server code. Not relevant here, sorry.