cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 4

Anonymous
Not applicable

How do I get to this event CYBLE_BLESS_STATE_EVENT_CLOSE ?

I need to use it for CyBle_GapUpdateAdvData( ) function.

What will force that event?

Is it

CySysPmSleep(); ?

CySysPmDeepSleep(); ?

CySysPmHibernate();?

I will make this for the Peripheral.

Also if it hibernates, sleep, deep sleep ... will i ever connect to it ? via Central.

Message was edited by: Cyrus Nikko Pante

0 Likes
1 Solution
Anonymous
Not applicable

CYBLE_BLESS_STATE_EVENT_CLOSE occurs automatically as a unit runs through advertising

If you set the BLE to low power mode first, then you can still run the advertising while in sleep(), deepsleep() modes, but hibernate will need the BLE radio turned off.

You can still connect while it is advertising in sleep(), deepsleep() modes, but you will need to write code to handle the low power differences.

See here: http://www.cypress.com/blog/100-projects-100-days/project-027-ble-power-consumption-optimization

View solution in original post

1 Reply
Anonymous
Not applicable

CYBLE_BLESS_STATE_EVENT_CLOSE occurs automatically as a unit runs through advertising

If you set the BLE to low power mode first, then you can still run the advertising while in sleep(), deepsleep() modes, but hibernate will need the BLE radio turned off.

You can still connect while it is advertising in sleep(), deepsleep() modes, but you will need to write code to handle the low power differences.

See here: http://www.cypress.com/blog/100-projects-100-days/project-027-ble-power-consumption-optimization

View solution in original post