Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: easy-connect mbed-http
Fork of http-example-wnc by
Revision 20:1c3499729772, committed 2017-11-13
- Comitter:
- tdMBED
- Date:
- Mon Nov 13 18:53:10 2017 +0000
- Parent:
- 19:0859fa46f32a
- Commit message:
- Modified to test printf
Changed in this revision
--- 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
--- 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.
--- 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_
