Exemplo n.º 1
0
/**@brief Function for initializing services that will be used by the application.
 */
static void services_init(void) {
	uint32_t err_code;
	ble_lbs_init_t init;
	init.led_write_handler = led_write_handler;
	err_code = ble_lbs_init(&m_lbs, &init);
	APP_ERROR_CHECK(err_code);
}
Exemplo n.º 2
0
Arquivo: main.c Projeto: lexa-vic/BLE
/**@brief Function for initializing services that will be used by the application.
 */
static void services_init(void)
{
    // YOUR_JOB: Add code to initialize the services used by the application.
    uint32_t err_code;
    ble_lbs_init_t init;
    
    init.led_write_handler = led_write_handler;
    
    err_code = ble_lbs_init(&m_lbs, &init);
    APP_ERROR_CHECK(err_code);
}