Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Static class with methods for running a Bluetooth Low Energy (BLE) scan. More...
Classes | |
interface | ScannerCallback |
Interface for scan results callbacks. More... | |
Static Public Member Functions | |
static void | startScan (final String servicesUuids, final ScannerCallback callback) |
Starts scanning for BLE peripherals advertising the given list of services. | |
static void | stopScan () |
Stops an on-going BLE scan. | |
Static class with methods for running a Bluetooth Low Energy (BLE) scan.
It relies on Nordic's Android-Scanner-Compat-Library library for most of the work.
|
static |
Starts scanning for BLE peripherals advertising the given list of services.
If a scan is already running, it is stopped before starting the new one.
servicesUuids | Comma separated list of services UUIDs. Peripherals advertising at least one of the services will be reported. Notify for all peripherals if the list is null or empty. |
callback | The callback for notifying of the scan results (called for each advertisement packet). |