Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GSwifiInterface_HelloWorld GSwifiInterface_HelloServo GSwifiInterface_UDPEchoServer GSwifiInterface_UDPEchoClient ... more
Fork of WiflyInterface by
Diff: GSwifi/GSwifi_at.cpp
- Revision:
- 15:086d1a33a197
- Parent:
- 13:189e04ac70bd
- Child:
- 22:d25a5a0d2497
--- a/GSwifi/GSwifi_at.cpp Fri Jan 10 14:23:33 2014 +0000 +++ b/GSwifi/GSwifi_at.cpp Thu Jan 30 15:10:14 2014 +0000 @@ -304,7 +304,7 @@ int GSwifi::cmdNCLOSE (int n) { char cmd[CFG_CMD_SIZE]; - sprintf(cmd, "AT+NCLOSE=%d", n); + sprintf(cmd, "AT+NCLOSE=%X", n); return sendCommand(cmd, RES_NULL, CFG_TIMEOUT); } @@ -337,16 +337,16 @@ int GSwifi::cmdHTTPSEND (int n, bool m, const char *s, int t) { char cmd[CFG_CMD_SIZE]; if (m) { - sprintf(cmd, "AT+HTTPSEND=%d,3,%d,%s,%d", n, CFG_TIMEOUT / 1000, s, t); + sprintf(cmd, "AT+HTTPSEND=%X,3,%d,%s,%d", n, CFG_TIMEOUT / 1000, s, t); } else { - sprintf(cmd, "AT+HTTPSEND=%d,1,%d,%s", n, CFG_TIMEOUT / 1000, s); + sprintf(cmd, "AT+HTTPSEND=%X,1,%d,%s", n, CFG_TIMEOUT / 1000, s); } return sendCommand(cmd); } int GSwifi::cmdHTTPCLOSE (int n) { char cmd[CFG_CMD_SIZE]; - sprintf(cmd, "AT+HTTPCLOSE=%d", n); + sprintf(cmd, "AT+HTTPCLOSE=%X", n); return sendCommand(cmd, RES_NULL, CFG_TIMEOUT); }