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: EthernetNetIf mbed
Revision 0:e88a2ecafb49, committed 2012-04-10
- Comitter:
- nenad
- Date:
- Tue Apr 10 14:52:44 2012 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r e88a2ecafb49 EthernetNetIf.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EthernetNetIf.lib Tue Apr 10 14:52:44 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/donatien/code/EthernetNetIf/#bc7df6da7589
diff -r 000000000000 -r e88a2ecafb49 HTTPClient.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HTTPClient.lib Tue Apr 10 14:52:44 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/donatien/code/HTTPClient/#d0be6af2d1db
diff -r 000000000000 -r e88a2ecafb49 HTTPClientExample.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/HTTPClientExample.cpp Tue Apr 10 14:52:44 2012 +0000
@@ -0,0 +1,45 @@
+#include "mbed.h"
+#include "EthernetNetIf.h"
+#include "HTTPClient.h"
+
+EthernetNetIf eth;
+/*EthernetNetIf eth(
+ IpAddr(192,168,0,110), //IP Address
+ IpAddr(255,255,255,0), //Network Mask
+ IpAddr(192,168,0,1), //Gateway
+ IpAddr(192,168,0,1) //DNS
+);*/
+
+HTTPClient http;
+
+int main() {
+
+ printf("Setting up...\n");
+ EthernetErr ethErr = eth.setup();
+ if(ethErr)
+ {
+ printf("Error %d in setup.\n", ethErr);
+ return -1;
+ }
+ printf("Setup OK\n");
+
+ HTTPText txt;
+
+ HTTPResult r = http.get("http://tnt.etf.rs/~oe4irs/pmk.txt", &txt);
+ if(r==HTTP_OK)
+ {
+ printf("Result :\"%s\"\n", txt.gets());
+ }
+ else
+ {
+ printf("Error %d\n", r);
+ }
+
+ while(1)
+ {
+
+ }
+
+ return 0;
+
+}
diff -r 000000000000 -r e88a2ecafb49 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 10 14:52:44 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da