private fork
Fork of GSwifiInterface by
Diff: GSwifi/GSwifi_at.cpp
- Revision:
- 15:086d1a33a197
- Parent:
- 13:189e04ac70bd
--- 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); }