/**@brief Database discovery module initialization.
 */
static void db_discovery_init(void)
{
    ble_db_discovery_init_t db_discovery_init_obj;

    uint32_t err_code = ble_db_discovery_init(&db_discovery_init_obj);
    APP_ERROR_CHECK(err_code);
}
Beispiel #2
0
void client_init(void)
{
    ret_code_t err_code = ble_db_discovery_init(db_disc_handler);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_ble_amtc_init(&m_amtc, amtc_evt_handler);
    APP_ERROR_CHECK(err_code);
}
/* Function to init the connection manager */
void conn_init(void)
{
    uint32_t err_code;
	int i;

	/* init "connection" pin */
	nrf_gpio_pin_dir_set(CONN_PIN_NUMBER, NRF_GPIO_PIN_DIR_OUTPUT);
   
	/* init BLE stack */
	ble_stack_init(true);

	/* init database discovery */
	err_code = ble_db_discovery_init();
	APP_ERROR_CHECK(err_code);
	
	/* init NUS client service */
	nus_c_init();

	/* init connection handle array */
	for(i=0; i<NUM_OF_CONNECTIONS; i++)
	{
		active_conn_handles[i] = BLE_CONN_HANDLE_INVALID;
	}
}
Beispiel #4
0
/**@brief Database discovery module initialization.
 */
static void db_discovery_init(void)
{
    uint32_t err_code = ble_db_discovery_init();
    APP_ERROR_CHECK(err_code);
}
Beispiel #5
0
/** @brief Database discovery initialization.
 */
static void db_discovery_init(void)
{
    ret_code_t err_code = ble_db_discovery_init(db_disc_handler);
    APP_ERROR_CHECK(err_code);
}
Beispiel #6
0
/**@brief Function for initializing the database discovery module.
 */
void db_discovery_init(void)
{
    uint32_t err_code = ble_db_discovery_init(db_disc_handler);
    APP_ERROR_CHECK(err_code);
}