modified by ohneta
Dependencies: DnsQuery ESP8266Interface NetworkSocketAPI mbed
Fork of HelloESP8266Interface by
Revision 27:4dc43240e498, committed 2015-11-15
- Comitter:
- ohneta
- Date:
- Sun Nov 15 16:46:42 2015 +0000
- Parent:
- 26:c75450d0ab1f
- Commit message:
- hidden for private informations....:)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c75450d0ab1f -r 4dc43240e498 main.cpp --- a/main.cpp Wed Nov 11 06:00:43 2015 +0000 +++ b/main.cpp Sun Nov 15 16:46:42 2015 +0000 @@ -91,8 +91,7 @@ return true; } - - +#if 0 bool getHttpDebug(SocketInterface *socket, const char *urlStr, char *rsponse) { char scheme[8]; @@ -140,7 +139,7 @@ return true; } - +#endif bool getHttp(SocketInterface *socket, const char *urlStr, char *rsponse) { @@ -169,9 +168,6 @@ // retBufを httpプロトコルで分解しようか? { // 最低限でもresult codeくらい調べたい - - // 必要なヘッダだけ取り出す - // Date-xx: xxxxxx } return true; @@ -218,8 +214,7 @@ SocketInterface *socket = wifi.allocateSocket(SOCK_TCP); char responseBuffer[RESPOSE_BUFFER_SIZE] = {0}; - getHttpDebug(socket, "http://iina.ohneta.net/iinalab_office/api/inout_status.php?person=0&inout=0", responseBuffer); - //getHttp(socket, "http://iina.ohneta.net/iinalab_office/api/inout_status.php?person=0&inout=0", responseBuffer); + getHttp(socket, "http://youthost.com", responseBuffer); wifi.disconnect(); pc.printf(":::Finished\n");