BLE Timeout with terminate_gap_procedure using BLUENRG

58 Views Asked by At

I am developing an IOT solution using the BLUENRG-M0 from ST.

I am coding in C and I use a custom board with SPI communication between the BLUENRG and my MSP430F5255 from T.I . I am using the ACI API to transmit commands to the BLE module.

I have 2 boards, and while one is advertising, I want the other to perform scanning in order to receive an advertising report. (And to get the RSSI after).

My issue is when I want to make another scan. I use the aci_gap_terminate_gap_procedure() with the good opcode link to the function that I use for scanning, but I always receive a BLE_Timeout error. Therefore my primary scan has not ended correctly and I can’t begin a new one.

I have tried increasing the time before TIMEOUT but nothing changes.

I didn’t see people talking about the issue with the gap_terminate function, so I ask this here.

It would be nice if someone could clarify for me the use of this function and why it has this behavior.

Best regards.

PS: Here is the link for the documentation of BLUENRG API

0

There are 0 best solutions below