Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

es_wifi: fix start client connection for UDP sockets #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1761,13 +1761,13 @@ ES_WIFI_Status_t ES_WIFI_StartClientConnection(ES_WIFIObject_t *Obj, ES_WIFI_Con
ret = AT_ExecuteCommand(Obj, Obj->CmdData, Obj->CmdData);
}

if ((ret == ES_WIFI_STATUS_OK)&& ((conn->Type == ES_WIFI_TCP_CONNECTION) || (conn->Type == ES_WIFI_TCP_SSL_CONNECTION)))
if (ret == ES_WIFI_STATUS_OK)
{
sprintf((char*)Obj->CmdData,"P4=%d\r", conn->RemotePort);
ret = AT_ExecuteCommand(Obj, Obj->CmdData, Obj->CmdData);
}

if ((ret == ES_WIFI_STATUS_OK) && ((conn->Type == ES_WIFI_TCP_CONNECTION) || (conn->Type == ES_WIFI_TCP_SSL_CONNECTION)))
if (ret == ES_WIFI_STATUS_OK)
{
sprintf((char*)Obj->CmdData,"P3=%d.%d.%d.%d\r", conn->RemoteIP[0],conn->RemoteIP[1],
conn->RemoteIP[2],conn->RemoteIP[3]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1773,13 +1773,13 @@ ES_WIFI_Status_t ES_WIFI_StartClientConnection(ES_WIFIObject_t *Obj, ES_WIFI_Con
ret = AT_ExecuteCommand(Obj, Obj->CmdData, Obj->CmdData);
}

if ((ret == ES_WIFI_STATUS_OK)&& ((conn->Type == ES_WIFI_TCP_CONNECTION) || (conn->Type == ES_WIFI_TCP_SSL_CONNECTION)))
if (ret == ES_WIFI_STATUS_OK)
{
sprintf((char*)Obj->CmdData,"P4=%d\r", conn->RemotePort);
ret = AT_ExecuteCommand(Obj, Obj->CmdData, Obj->CmdData);
}

if ((ret == ES_WIFI_STATUS_OK) && ((conn->Type == ES_WIFI_TCP_CONNECTION) || (conn->Type == ES_WIFI_TCP_SSL_CONNECTION)))
if (ret == ES_WIFI_STATUS_OK)
{
sprintf((char*)Obj->CmdData,"P3=%d.%d.%d.%d\r", conn->RemoteIP[0],conn->RemoteIP[1],
conn->RemoteIP[2],conn->RemoteIP[3]);
Expand Down