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: EthernetInterface HTTPClient mbed-rtos mbed wolfSSL
Fork of SimpleHTTPSClient by
Diff: main.cpp
- Revision:
- 4:68c5a3f49a48
- Parent:
- 3:41412e91afb0
- Child:
- 5:12ff922de096
diff -r 41412e91afb0 -r 68c5a3f49a48 main.cpp --- a/main.cpp Sat Feb 07 19:12:32 2015 +0000 +++ b/main.cpp Sat Feb 07 19:14:32 2015 +0000 @@ -29,7 +29,7 @@ /*** HTTP ***/ printf("\nFetching HTTP\n"); - ret = http.get("http://192.168.1.12/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); + ret = http.get("http://SERVER_IP/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); if (!ret) { printf("Result: %s\n", recvBuff); } else { @@ -38,7 +38,7 @@ /*** HTTPS (SSL) ***/ printf("\nFetching HTTPS\n"); - ret = http.get("https://192.168.1.12/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); + ret = http.get("https://SERVER_IP/574d76fcb/keys.txt", recvBuff, sizeof(recvBuff)); if (!ret) { printf("Result: %s\n", recvBuff); } else {