I have some working BT code with a GATT server, testing with LightBlue and Mac OSX Bluetooth Explorer.
Both LightBlue and Explorer can make a connection and do some GATT read/write transactions. But when either Central disconnects I am no longer able to make new connections - either with the same Central or one of the previously-unconnected Centrals.
The “bt.onconnect” close method is triggering when the Central disconnects so I know the connection is gone, and advertisements are still going out. But when I try to connect again “onconnect” doesn’t get called for the new connection (and the Centrals time out).
For the connection/onconnect/other bt code I’ve cut/pasted from the sample code.
Why do subsequent connections fail after a Central disconnect?