Error when trying to terminate BLE connection
I'm using a WB55 Nucleo board and setting up a BLE connection with a 2nd WB55 Nucleo board using aci_gap_create_connection(). The connection succeeds and I am able to transfer data between the 2 boards. I would then like to terminate the connection. I call aci_gap_terminate_gap_proc(0x40) to do this, but I always get a return value of 0x46, which corresponds to BLE_STATUS_NOT_ALLOWED.
Any ideas why the call to aci_gap_terminate_gap_proc() fails? Or is there a different recommended way to terminate the BLE connection?
Thanks...