Matter + BLE scanning

Hi,

I see the Matter CHIP integration uses BLE for commissioning, so to advertise a ble service the documentation advises to use NUS.

What about scanning for ble devices and connecting to them?

Parents Reply
  • I am trying to integrate central_uart with my Matter application as you suggested but I'm getting uart_init failed (err -88).

    It's failing here:

    const struct uart_driver_api *api =
    	(const struct uart_driver_api *)dev->api;
    
    if (api->callback_set == NULL) {
    	return -ENOSYS;
    }
    

    I've seen from another ticket that it could be the uart_cb callback passed to the init function but mine is exactly the same as the central_uart sample. My uart device is declared in the overlay like this (and it's not disabled):

    / {
        chosen {
            nordic,nus-uart = &uart0;
        };
    };

    so I'm not sure what could be causing this. I've also tried changing uart mode to async, interrupt driven and other params but with no luck, and meanwhile the scan is always returning error -5.

Children
No Data
Related