fix udp bug

This commit is contained in:
MarcusXing 2018-08-13 18:39:50 +08:00
parent 0c20779676
commit 65ad4479f2
1 changed files with 1 additions and 1 deletions

View File

@ -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;