Skip to content

Commit 7d61c5f

Browse files
committed
gap/windows: add stubbed function for SetRandomAddress()
Signed-off-by: deadprogram <[email protected]>
1 parent 0cdcf6d commit 7d61c5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gap_windows.go

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package bluetooth
22

33
import (
4+
"errors"
45
"fmt"
56
"unsafe"
67

@@ -381,3 +382,8 @@ func (d Device) RequestConnectionParams(params ConnectionParams) error {
381382
// BluetoothLEDevice.RequestPreferredConnectionParameters.
382383
return nil
383384
}
385+
386+
// SetRandomAddress sets the random address to be used for advertising.
387+
func (a *Adapter) SetRandomAddress(mac MAC) error {
388+
return errors.ErrUnsupported
389+
}

0 commit comments

Comments
 (0)