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:
- 2:071a8275fa40
- Parent:
- 1:54bce95d1d97
- Child:
- 3:41412e91afb0
--- a/main.cpp Mon Dec 08 12:40:31 2014 +0000 +++ b/main.cpp Mon Dec 08 22:26:51 2014 +0000 @@ -9,7 +9,7 @@ HTTPClient http; char recvBuff[1024*20]; -int main() +void net_main(void const *av) { int ret ; @@ -45,4 +45,15 @@ eth.disconnect(); while(1) { } +} + +main() +{ + +#define STACK_SIZE 20000 + Thread t(net_main, NULL, osPriorityNormal, STACK_SIZE); + + while (true) { + Thread::wait(1000); + } } \ No newline at end of file