cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

Hello Everyone,

   

I am using two PROC BLE devices one configured as GAP Peripheral & another as GAP Central. 

   

I want to scan for the device and run service discovery only for the first time I connect with the device. 

   

From the second time onwards I should only connect to the device update a value and disconnect. 

   

Is this possible? 

0 Likes
1 Reply
Anonymous
Not applicable

Yes! ofcourse it is possible.

   

You can connec to the device and bond it the first time you connect. You can discover it services in the first time and store the characteristic handle values in your code.

   

From next time onwards you need not discover. You can directly use the handle values and perform read/write.

   

(Note if you want to retain the handle values even after power off/ hibernate, you need to store them in your on-chip flash.

   

Regards,

   

-Madhu Sudhan

0 Likes