KW40Z bluetooth reconnect

cancel
Showing results for 
Search instead for 
Did you mean: 

KW40Z bluetooth reconnect

596 Views
shinezen
Contributor III

Hello, we are programming board KW40Z and implementing some sample code. 

In the "heart rate sensor" example, it requires us to press button SW4 to turn on the bluetooth,and then when i disconnect bluetooth,  but i  reconnect  kw40z by bluetooth need to press button SW4 to turn on the bluetooth.

could you help us what to do in the code to turn on the bluetooth as the power is on and reconnect 

Thanks for your help!

Labels (1)
0 Kudos
2 Replies

259 Views
estephania_mart
NXP TechSupport
NXP TechSupport

For further information see:

0 Kudos

259 Views
danielkresta
NXP Employee
NXP Employee

Hello,
after disconnection, bluetooth turns off in order to save power and the SW4 button is there to wake up the device from the sleep mode. The low power is defined in app_preinclude.h file as cPWR_UsePowerDownMode. You might want to test the example with this feature turned off (value changed to 0), so that sleep modes won't be used and the device would start advertising right after disconnection.
I also reccomend you to check the app.c file, what changes when cPWR_UsePowerDownMode is not defined.
Hope this helps.
Regards,
Daniel

0 Kudos