I'm attempting to set profiles on my device (4 of them)
I successfully delete the profiles
My connection policy is (false, false, true)
After adding the third one of them, I'm getting an unsolicited disconnect message. I'm getting this almost concurrently with my request to receive the response to the previous add profile command.
The behaviour I'm seeing is that I never actually manage to get a response to the command I sent.
I've now restructured my code so that CS is not pulled low to indicate a transmit at a higher priority than the receive interrupt. As a result this can't be the cause of what's going on.
I'm sending an Add Profile message, and in response I'm getting an 0x8002 event, instead of the correct response of 0x0005. In addition, my code is happy to receive responses out of order, but the 0x0005 never arrives. This looks like a firmware bug.
If I turn off one of the Wifi AP's that I'm adding, I don't get this problem.
Also, should it really take 7 seconds to add a profile?