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: mbed-http
Diff: source/main-http-ipv6.cpp
- Revision:
- 32:5fa61ebc2689
- Parent:
- 31:66704f6f17c5
--- a/source/main-http-ipv6.cpp Tue Mar 27 11:57:33 2018 +0200
+++ b/source/main-http-ipv6.cpp Tue Oct 30 11:07:46 2018 +0800
@@ -3,7 +3,7 @@
#if DEMO == DEMO_HTTP_IPV6
#include "mbed.h"
-#include "easy-connect.h"
+#include "network-helper.h"
#include "http_request.h"
void dump_response(HttpResponse* res) {
@@ -17,10 +17,9 @@
}
int main() {
- // Connect to the network (see mbed_app.json for the connectivity method used)
- NetworkInterface* network = easy_connect(true);
+ NetworkInterface* network = connect_to_default_network_interface();
if (!network) {
- printf("Cannot connect to the network, see serial output");
+ printf("Cannot connect to the network, see serial output\n");
return 1;
}