cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-BCN002V1B question.

I try to understand the logic of the kit.

I open STSW-BLUETILE-DK 1.2.0->Project->BLE_Examples->BLE_Beacon

And I see in the main routine

while (1) 
    {
	/* BlueNRG-1 stack tick */
	BTLE_StackTick();
 
	/* Enable Power Save according the Advertising Interval */
 
        #if ST_USE_OTA_SERVICE_MANAGER_APPLICATION
	if (!isPlugged)
        {
	    if (GPIO_ReadBit(GPIO_Pin_11) == Bit_SET)
		BlueNRG_Sleep(SLEEPMODE_NOTIMER, WAKEUP_IO11, (WAKEUP_IOx_LOW << WAKEUP_IO11_SHIFT_MASK));
	    else
		BlueNRG_Sleep(SLEEPMODE_NOTIMER, WAKEUP_IO11, (WAKEUP_IOx_HIGH << WAKEUP_IO11_SHIFT_MASK));
	}
        #else
	BlueNRG_Sleep(SLEEPMODE_NOTIMER, 0, 0);
        #endif
    }

But where is a periodic data retrieving from the sensors? Where is a beacon updating and advertising? Should I implement it by myself?

0 REPLIES 0