Cancel Bluetooth scan of in-range devices.
Synopsis:
#include <btapi/btdevice.h>
int bt_disc_cancel_inquiry()
Arguments:
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
This function terminates Bluetooth scans that are in progress.
Returns:
0 is returned upon success,
-1 with the
errno set otherwise. Any
errno value other than the following indicates that a system error has occurred:
- ENOMEM: There was insufficient memory to allocate required structures.
- ENOENT: A required data entry was not found (internal error).
- EPERM: There was an error accessing required system data (internal error).