mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-20 06:28:59 +00:00
espat: implement TCPConn using AT command set
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ func (d *Device) ConnectTCPSocket(addr, port string) error {
|
||||
protocol := "TCP"
|
||||
val := "\"" + protocol + "\",\"" + addr + "\"," + port
|
||||
d.Set(TCPConnect, val)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(pause * time.Millisecond)
|
||||
d.Response()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user