2019-03-08 06:41 AM
I have done a Bluetooth server that works well.
The client is connecting, interacting with the services and disconnecting.
On the disconnecting procedure, the server starts the command "Aci_Gap_Set_Discoverable".
In some cases, when the connection is not closed properly, the "SPBTLE-RF" chip returns a fail on "Aci_Gap_Set_Discoverable" command ( 0x0C: Command disallowed ).
It looks like the chip is stuck in some mode.