modified to get more signal info

Dependencies:   easy-connect mbed-http

Fork of http-example-wnc-modified by Tyler Davis

Files at this revision

API Documentation at this revision

Comitter:
Jan Jongboom
Date:
Tue Mar 28 14:51:12 2017 +0200
Parent:
10:e79a808ebbe8
Child:
12:4c226ca06191
Commit message:
Add socket reuse

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
mbed-http.lib Show annotated file Show diff for this revision Revisions of this file
source/select-demo.h Show annotated file Show diff for this revision Revisions of this file
--- a/README.md	Tue Mar 28 13:43:53 2017 +0200
+++ b/README.md	Tue Mar 28 14:51:12 2017 +0200
@@ -2,14 +2,16 @@
 
 This application demonstrates how to make HTTP and HTTPS requests and parse the response from mbed OS 5.
 
-It consists of two demo's, which you can select in ``source/select-demo.h``.
+It consists of four demo's, which you can select in ``source/select-demo.h``.
 
-* HTTP demo
+* HTTP demo:
     * Does a GET request to http://httpbin.org/status/418.
     * Does a POST request to http://httpbin.org/post.
-* HTTPS demo
+* HTTPS demo:
     * Does a GET request to https://developer.mbed.org/media/uploads/mbed_official/hello.txt.
     * Does a POST request to https://httpbin.org/post.
+* HTTP demo with socket re-use.
+* HTTPS demo with socket re-use.
 
 Response parsing is done through [nodejs/http-parser](https://github.com/nodejs/http-parser).
 
--- a/mbed-http.lib	Tue Mar 28 13:43:53 2017 +0200
+++ b/mbed-http.lib	Tue Mar 28 14:51:12 2017 +0200
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/sandbox/code/mbed-http/#b017c7d2cf23
+https://developer.mbed.org/teams/sandbox/code/mbed-http/#530c2ebee349
--- a/source/select-demo.h	Tue Mar 28 13:43:53 2017 +0200
+++ b/source/select-demo.h	Tue Mar 28 14:51:12 2017 +0200
@@ -1,8 +1,10 @@
 #ifndef _SELECT_METHOD_H_
 #define _SELECT_METHOD_H_
 
-#define         DEMO_HTTP       1
-#define         DEMO_HTTPS      2
+#define         DEMO_HTTP                   1
+#define         DEMO_HTTP_SOCKET_REUSE      2
+#define         DEMO_HTTPS                  3
+#define         DEMO_HTTPS_SOCKET_REUSE     4
 
 #define         DEMO            DEMO_HTTP