Bonding Event in CYBLE_EVENT_T

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
EyGe_3183606
Level 4
Level 4
25 replies posted 10 sign-ins 10 replies posted

Hello,

We are working with PSOC4 BLE 4.2

I want to identify when a bonding event occurs to verify that it is indeed happening and print it out using UART and to control its operation (e.g. stop the bonding etc.)

Under CYBLE_EVENT_T enum there is no such event. So how would you recommend I go about to identify such an event?

Thanks,
David

0 Likes
1 Solution
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

CYBLE_EVT_PENDING_FLASH_WRITE event triggers on successful pairing , if bonding information/CCCD needs to be store in Flash.

Also , a global flag "cyBle_pendingFlashWrite" will be set by the BLE Stack if the bonding information needs to be store.

The application has to monitor this flag and should store the bonding information in Flash by multiple call of CyBle_StoreBondingData(). Once the bonding information is stored , the global variable will be reset automatically by stack.

Please refer "BLE_FindMe" from PSoC Creator Code examples ( PSoC Creator -> File -> Code Examples )

-Gyan

View solution in original post

1 Reply
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

CYBLE_EVT_PENDING_FLASH_WRITE event triggers on successful pairing , if bonding information/CCCD needs to be store in Flash.

Also , a global flag "cyBle_pendingFlashWrite" will be set by the BLE Stack if the bonding information needs to be store.

The application has to monitor this flag and should store the bonding information in Flash by multiple call of CyBle_StoreBondingData(). Once the bonding information is stored , the global variable will be reset automatically by stack.

Please refer "BLE_FindMe" from PSoC Creator Code examples ( PSoC Creator -> File -> Code Examples )

-Gyan