Created
October 5, 2016 20:22
-
-
Save adrianfaciu/89f3b2cf870782322202de4dab6336f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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