We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 448598c commit f2f4709Copy full SHA for f2f4709
espat/adapter.go
@@ -12,7 +12,7 @@ func (d *Device) ConnectToAccessPoint(ssid, pass string, timeout time.Duration)
12
}
13
14
d.SetWifiMode(WifiModeClient)
15
- return d.ConnectToAP(ssid, pass, 10)
+ return d.ConnectToAP(ssid, pass, int(timeout.Seconds()))
16
17
18
func (d *Device) Disconnect() error {
0 commit comments