Skip to content

Commit f2f4709

Browse files
iKuikideadprogram
authored andcommitted
fix esp8266 ConnectToAccessPoint timeout args
1 parent 448598c commit f2f4709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

espat/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func (d *Device) ConnectToAccessPoint(ssid, pass string, timeout time.Duration)
1212
}
1313

1414
d.SetWifiMode(WifiModeClient)
15-
return d.ConnectToAP(ssid, pass, 10)
15+
return d.ConnectToAP(ssid, pass, int(timeout.Seconds()))
1616
}
1717

1818
func (d *Device) Disconnect() error {

0 commit comments

Comments
 (0)