Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Created October 5, 2016 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianfaciu/89f3b2cf870782322202de4dab6336f6 to your computer and use it in GitHub Desktop.
Save adrianfaciu/89f3b2cf870782322202de4dab6336f6 to your computer and use it in GitHub Desktop.
scan(): Promise<any> {
return bluetooth.startScanning({
serviceUUIDs: [],
seconds: 3,
onDiscovered: (device) => {
const bleDevice = new BleDevice(device.UUID, device.name, device.state);
this.bleDevicesAround.push(bleDevice);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment