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
receives msg
disconnected by server after 20 sec
then B connects to server
receives msg
disconnected by server after 20 sec
Everything works as expected here
Scenario 2
B connects to server first
receives msg
disconnected by server after 20 sec
then A connects to server
does not receive msg (indication is being sent by the server, but nothing received)
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