ble/Gap.h
ble_error_t startScan(void (*callback)(const AdvertisementCallbackParams_t *params)) {
        ble_error_t err = BLE_ERROR_NONE;
        if (callback) {
            if ((err = startRadioScan(_scanningParams)) == BLE_ERROR_NONE) {
                scanningActive = true;
                onAdvertisementReport.attach(callback);
            }
        }

        return err;
    }
/**
     * Start scanning (Observer Procedure) based on the parameters currently in
     * effect.
     *
     * @param[in] callback
     *              The application-specific callback to be invoked upon
     *              receiving every advertisement report. This can be passed in
     *              as NULL, in which case scanning may not be enabled at all.
     *
     * @return BLE_ERROR_NONE if the device successfully started the scan
     *         procedure.
     */
Start scanning (Observer Procedure) based on the parameters currently in
effect.

@param[in] callback
The application-specific callback to be invoked upon
receiving every advertisement report. This can be passed in
as NULL, in which case scanning may not be enabled at all.

@return BLE_ERROR_NONE if the device successfully started the scan
procedure.
Start scanning ( Observer Procedure ) based on the parameters currently in effect . @param [ in ] callback The application - specific callback to be invoked upon receiving every advertisement report . This can be passed in as NULL in which case scanning may not be enabled at all . @return BLE_ERROR_NONE if the device successfully started the scan procedure .
ble_error_t startScan(void (*callback)(const AdvertisementCallbackParams_t *params)) {
        ble_error_t err = BLE_ERROR_NONE;
        if (callback) {
            if ((err = startRadioScan(_scanningParams)) == BLE_ERROR_NONE) {
                scanningActive = true;
                onAdvertisementReport.attach(callback);
            }
        }
        return err;
    }
ble_error_t startScan ( void ( * callback ) ( const AdvertisementCallbackParams_t * params ) ) { ble_error_t err = BLE_ERROR_NONE ; if ( callback ) { if ( ( err = startRadioScan ( _scanningParams ) ) == BLE_ERROR_NONE ) { scanningActive = true ; onAdvertisementReport . attach ( callback ) ; } } return err ; }
Start scanning (Observer Procedure) based on the parameters currently in
 effect.
Start scanning ( Observer Procedure ) based on the parameters currently in effect .