15 lines
477 B
Go
15 lines
477 B
Go
|
package bluetooth
|
||
|
|
||
|
// Scan starts a BLE scan. It is stopped by a call to StopScan. A common pattern
|
||
|
// is to cancel the scan when a particular device has been found.
|
||
|
func (a *Adapter) Scan(callback func(*Adapter, ScanResult)) (err error) {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// StopScan stops any in-progress scan. It can be called from within a Scan
|
||
|
// callback to stop the current scan. If no scan is in progress, an error will
|
||
|
// be returned.
|
||
|
func (a *Adapter) StopScan() error {
|
||
|
return nil
|
||
|
}
|