espat: implement TCPConn using AT command set

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-06-20 14:30:40 +02:00
parent fe58e9b762
commit 500f3d9813
3 changed files with 140 additions and 11 deletions
+1 -1
View File
@@ -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
}