data_gathering/beacon_node/ble_findme.c
void ble_findme_process(void)
{
    /* Cy_BLE_ProcessEvents() allows the BLE stack to process pending events */
    Cy_BLE_ProcessEvents();
    
	/* Update CYBSP_USER_LED1 to indicate current BLE status */
	if(CY_BLE_ADV_STATE_ADVERTISING == Cy_BLE_GetAdvertisementState())
	{
		cyhal_gpio_toggle((cyhal_gpio_t)CYBSP_USER_LED1);
	}
	else if(CY_BLE_CONN_STATE_CONNECTED == Cy_BLE_GetConnectionState(app_conn_handle))
	{
		cyhal_gpio_write((cyhal_gpio_t)CYBSP_USER_LED1, CYBSP_LED_STATE_ON);
	}
	else
	{
		cyhal_gpio_write((cyhal_gpio_t)CYBSP_USER_LED1, CYBSP_LED_STATE_OFF);
	}
}
/*******************************************************************************
* Function Name: ble_findme_process
********************************************************************************
* Summary:
*  This function processes the BLE events and configures the device to enter
*  low power mode as required.
*
*******************************************************************************/
Function Name: ble_findme_process
Summary:
This function processes the BLE events and configures the device to enter
low power mode as required.
Function Name : ble_findme_process Summary : This function processes the BLE events and configures the device to enter low power mode as required .
void ble_findme_process(void)
{
    Cy_BLE_ProcessEvents();
	if(CY_BLE_ADV_STATE_ADVERTISING == Cy_BLE_GetAdvertisementState())
	{
		cyhal_gpio_toggle((cyhal_gpio_t)CYBSP_USER_LED1);
	}
	else if(CY_BLE_CONN_STATE_CONNECTED == Cy_BLE_GetConnectionState(app_conn_handle))
	{
		cyhal_gpio_write((cyhal_gpio_t)CYBSP_USER_LED1, CYBSP_LED_STATE_ON);
	}
	else
	{
		cyhal_gpio_write((cyhal_gpio_t)CYBSP_USER_LED1, CYBSP_LED_STATE_OFF);
	}
}
void ble_findme_process ( void ) { Cy_BLE_ProcessEvents ( ) ; if ( CY_BLE_ADV_STATE_ADVERTISING == Cy_BLE_GetAdvertisementState ( ) ) { cyhal_gpio_toggle ( ( cyhal_gpio_t ) CYBSP_USER_LED1 ) ; } else if ( CY_BLE_CONN_STATE_CONNECTED == Cy_BLE_GetConnectionState ( app_conn_handle ) ) { cyhal_gpio_write ( ( cyhal_gpio_t ) CYBSP_USER_LED1 , CYBSP_LED_STATE_ON ) ; } else { cyhal_gpio_write ( ( cyhal_gpio_t ) CYBSP_USER_LED1 , CYBSP_LED_STATE_OFF ) ; } }
Function Name: ble_findme_process
Summary:
This function processes the BLE events and configures the device to enter
low power mode as required.
Function Name : ble_findme_process Summary : This function processes the BLE events and configures the device to enter low power mode as required .
/* Cy_BLE_ProcessEvents() allows the BLE stack to process pending events */ /* Update CYBSP_USER_LED1 to indicate current BLE status */