
Example program demonstrating use of HTTP or HTTPS protocol over a cellular connection with httpbin.org using the MTSAS library. (Demonstrates GET,POST,basic-auth)
Revision 12:df8e80235b1b, committed 2015-03-25
- Comitter:
- Vanger
- Date:
- Wed Mar 25 20:38:19 2015 +0000
- Parent:
- 11:47de28c1746b
- Child:
- 13:1a26efe2c843
- Commit message:
- Changed log level to INFO for HTTPS main code.; Added "end of program" message to HTTPS main code.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Mar 25 20:31:36 2015 +0000 +++ b/main.cpp Wed Mar 25 20:38:19 2015 +0000 @@ -195,7 +195,7 @@ //Sets the baud rate for communicating with the radio io->baud(115200); - MTSLog::setLogLevel(MTSLog::TRACE_LEVEL); + MTSLog::setLogLevel(MTSLog::INFO_LEVEL); //Initialize radio configurations Cellular* radio = CellularFactory::create(io); @@ -317,6 +317,7 @@ res = http->basicAuth(NULL,NULL); logTrace("Reset username and password?: %s",httpResToStr(res)); + logInfo("End of example code\n"); return 0; }