startScan static method

void startScan(
  1. void onNewDeviceFound(
    1. String?,
    2. String?
    )
)

Starts scanning for Movesense devices. When a new Movesense device is found, onNewDeviceFound is called with device name and address. Android devices will get the Bluetooth MAC address of the sensor, where iOS devices will get UUID as the address parameter. Scanning is terminated automatically after 60 seconds. Only devices with Movesense services are returned.

Implementation

static void startScan(void Function(String?, String?) onNewDeviceFound) {
  MdsImpl().startScan(onNewDeviceFound);
}