From 65ad4479f2f383f0372cd4408a34cf097eb8d71e Mon Sep 17 00:00:00 2001 From: MarcusXing Date: Mon, 13 Aug 2018 18:39:50 +0800 Subject: [PATCH] fix udp bug --- at_socket_ec20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/at_socket_ec20.c b/at_socket_ec20.c index 8bd7081..3b44228 100644 --- a/at_socket_ec20.c +++ b/at_socket_ec20.c @@ -526,7 +526,7 @@ __retry: break; case AT_SOCKET_UDP: - if (at_exec_cmd(RT_NULL, "AT+QIOPEN=1,%d,\"UDP\",\"%s\",%d", socket, ip, port) < 0) + if (at_exec_cmd(RT_NULL, "AT+QIOPEN=1,%d,\"UDP\",\"%s\",%d,0,1", socket, ip, port) < 0) { result = -RT_ERROR; goto __exit;