Just testing things, based off of http-example-wnc

Dependencies:   easy-connect mbed-http

Fork of http-example-wnc by Avnet

Files at this revision

API Documentation at this revision

Comitter:
tdMBED
Date:
Mon Nov 13 18:53:10 2017 +0000
Parent:
19:0859fa46f32a
Commit message:
Modified to test printf

Changed in this revision

mbed_app.json Show annotated file Show diff for this revision Revisions of this file
source/main-http.cpp 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
diff -r 0859fa46f32a -r 1c3499729772 mbed_app.json
--- a/mbed_app.json	Sun Apr 23 18:40:19 2017 +0000
+++ b/mbed_app.json	Mon Nov 13 18:53:10 2017 +0000
@@ -23,7 +23,7 @@
             "value": "\"SSID\""
         },
         "WNC_DEBUG": {
-            "value": false
+            "value": true
         },
         "WNC_DEBUG_SETTING": {
             "value": 7
diff -r 0859fa46f32a -r 1c3499729772 source/main-http.cpp
--- a/source/main-http.cpp	Sun Apr 23 18:40:19 2017 +0000
+++ b/source/main-http.cpp	Mon Nov 13 18:53:10 2017 +0000
@@ -21,12 +21,17 @@
 int main() {
     pc.baud(115200);
     // Connect to the network (see mbed_app.json for the connectivity method used)
+    while(1) {
+        printf("Hello?\n");
+    }
     NetworkInterface *network = easy_connect(true);
     if (!network) {
         printf("Cannot connect to the network, see serial output");
         return 1;
     }
 
+    printf("See if it gives any debug info");
+
     // Do a GET request to httpbin.org
     {
         // By default the body is automatically parsed and stored in a buffer, this is memory heavy.
diff -r 0859fa46f32a -r 1c3499729772 source/select-demo.h
--- a/source/select-demo.h	Sun Apr 23 18:40:19 2017 +0000
+++ b/source/select-demo.h	Mon Nov 13 18:53:10 2017 +0000
@@ -7,5 +7,5 @@
 #define         DEMO_HTTPS_SOCKET_REUSE     4
 #define         DEMO_HTTPx                  5
 
-#define         DEMO            DEMO_HTTPx
+#define         DEMO            DEMO_HTTP
 #endif // _SELECT_METHOD_H_