ble_multi_central to 5 peripherals in nRF52840

  • I added uart driver to the ble_multi_central but uart is not working, in debug mode working.
  • Its only scanning single ID peripheral, how can i modify the code to the scan for mutliple peripherals with the different ID's.
  • Iam attaching the code which i added uart driver to the ble_multi_central example. 

static void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = SER_APP_RX_PIN,         // NRF_GPIO_PIN_MAP(1,12)
        .tx_pin_no    = SER_APP_TX_PIN,         // NRF_GPIO_PIN_MAP(1,13)
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };

    APP_UART_FIFO_INIT(&comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
    APP_ERROR_CHECK(err_code);
}

Regards,

vijayalakshmi