2024-11-14 08:38 AM
Hello,
I would like to connect the P-Nucleo-WB55 board to a specific BLE device. The BLE device is found by name. But when I call the function aci_gap_create_connection() I keep getting 0x0c (Command Disallowed) back. I have checked and changed the parameters several times. No further P2P connections should be established. My bigger goal is to transfer the data to a mesh afterwards. But I also switched off the mesh beforehand with BLEMesh_Shutdown().
What could be the problem?
Many thanks for your help
Best regards
aci_gap_create_connection(0x0040,0x0030,0x00,peer_address_little_endian,0x00,0x0018,0x0028,0,0x01F4,0,0);
2024-11-15 06:14 AM
Hello Friedrich
The commands are allowed if :
1. no GATT procedure is started already
2. there is no req-resp transaction pending to be completed
You could get the error code 0x0C Command disallowed if other commands are pending, or if the connection handle is incorrect (is not your concern).
I'd also advise you to look at the wait events, and check that the flow is good and that all your events are happening in the right order.
What project did you start with?
BR, Joé