This example codes uses the wolfssl library to get hastags from Twitter by using the FRDM-K64F board from Freescale
Dependencies: EthernetInterface-FRDM HTTPClient mbed-rtos mbed wolfSSL WDT_K64F
Fork of SimpleHTTPSClient by
Diff: main.cpp
- Revision:
- 4:68c5a3f49a48
- Parent:
- 3:41412e91afb0
- Child:
- 5:4d53cdfe94c4
--- 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 {