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;