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: MbedJSONValue mbed-http HTS221
Diff: source/main-https-chunked-request.cpp
- Branch:
- mbed-os-5.10
- Revision:
- 30:4825e4f38844
- Parent:
- 29:5ad8f931e4ff
- Child:
- 31:66704f6f17c5
--- a/source/main-https-chunked-request.cpp Tue Mar 27 11:57:33 2018 +0200
+++ b/source/main-https-chunked-request.cpp Mon Oct 29 14:34:43 2018 +0800
@@ -9,7 +9,7 @@
#include "mbed.h"
#include "https_request.h"
-#include "easy-connect.h"
+#include "network-helper.h"
/* List of trusted root CA certificates
* currently one: Comodo, the CA for reqres.in
@@ -67,8 +67,9 @@
}
int main() {
- NetworkInterface* network = easy_connect(true);
+ NetworkInterface* network = connect_to_default_network_interface();
if (!network) {
+ printf("Cannot connect to the network, see serial output\n");
return 1;
}