Part Number: CC2650STK
Other Parts Discussed in Thread: BLE-STACK, CC2650
Tool/software: TI-RTOS
I'm using the example project (sensortag_cc2650stk_stack and sensortag_cc2650stk_app) from the bluetooth stack (ble_sdk_2_02_01_18)
I've enabled the LED Lights on the Dev Pack, by defining the switch 'INCLUDE_LIGHT'
The code in function -
void SensorTagLight_processCharChangeEvt(uint8_t paramID)
Includes at the bottom a section which when enabled disconnects the bluetooth from the connected device. If this section of code is excluded from the project then the connection remains intact but LEDs flash on and off rather then remaining illuminated consistently.
#ifdef POWER_SAVING
// Make sure the power domains are on if any light is active
if (lvalRed>0 || lvalGreen>0 || lvalBlue>0 || lvalWhite>0)
{
devpkSetLight(Board_DEVPK_LIGHT_BLUE, 0x02);
/* Set constraints for Standby and Idle mode */
Power_setConstraint(PowerCC26XX_SB_DISALLOW);
Power_setConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
}
else
{
devpkSetLight(Board_DEVPK_LIGHT_BLUE, 0x00);
/* Release constraints for Standby and Idle mode */
Power_releaseConstraint(PowerCC26XX_SB_DISALLOW);
Power_releaseConstraint(PowerCC26XX_IDLE_PD_DISALLOW);
}
#endif // POWER_SAVING



