Scanning BLE sensors

Hi All,

Sorry for such a very basic question, but I've tried many things and combinations and cannot make this work.

I'm trying to discover BLE sensors using nrf_ble_scan_init but my handler is never called, even though I have two sensors near the board, a ST100.

The current code is:

    ret_code_t          err_code;
    nrf_ble_scan_init_t init_scan;

    memset(&init_scan, 0, sizeof(init_scan));

    err_code = nrf_ble_scan_init(&m_scan, &init_scan, handler);
    APP_ERROR_CHECK(err_code);

Any help is really appreciated.

Thanks in advance,

Andre

Parents
  • Hi Andre,

    I understood like, the code snippet is a part of the scan_init(), and it is not at all called when running your program, correct me if I am wrong,

    Just a few questions,

    1) Which sample project you are using?

    2) You cross-checked that, there are instances for calling this function during execution?

    3) How did you verified this function is not being called? Did you put some prints?

    4) Can you share your code?

Reply
  • Hi Andre,

    I understood like, the code snippet is a part of the scan_init(), and it is not at all called when running your program, correct me if I am wrong,

    Just a few questions,

    1) Which sample project you are using?

    2) You cross-checked that, there are instances for calling this function during execution?

    3) How did you verified this function is not being called? Did you put some prints?

    4) Can you share your code?

Children
Related