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: mbed UMTSStickNetIf
Revision 0:ed68b937c6ef, committed 2011-05-03
- Comitter:
- nenad
- Date:
- Tue May 03 22:15:19 2011 +0000
- Commit message:
- 1
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HTTPClient.lib Tue May 03 22:15:19 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/donatien/code/HTTPClient/#d0be6af2d1db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PMK_UMTSStickNetIfExample.cpp Tue May 03 22:15:19 2011 +0000
@@ -0,0 +1,53 @@
+#include "mbed.h"
+#include "UMTSStickNetIf.h"
+#include "HTTPClient.h"
+
+UMTSStickNetIf stick;
+HTTPClient http;
+
+int main() {
+
+ printf("Setting up...\n");
+ UMTSStickErr umtsStickErr = stick.setup();
+ if(umtsStickErr)
+ {
+ printf("Error %d in setup.\n", umtsStickErr);
+ return -1;
+ }
+ printf("Setup OK\r\n");
+
+ PPPErr pppErr;
+ printf("Connecting...\n");
+ pppErr = stick.connect("prepaidnet", "mts", "064");
+ if(pppErr)
+ {
+ printf("Error %d during connection.\n", pppErr);
+ return -1;
+ }
+
+ HTTPText txt;
+
+ HTTPResult r = http.get("http://tnt.etf.rs/~oe4irs/PMK_test.txt", &txt);
+ if(r==HTTP_OK)
+ {
+ printf("Result :\"%s\"\n", txt.gets());
+ }
+ else
+ {
+ printf("Error %d\n", r);
+ }
+
+ printf("Disconnecting.\n");
+
+ stick.disconnect();
+
+ printf("Disconnected.\n");
+
+ while(1)
+ {
+
+ }
+
+ return 0;
+
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UMTSStickNetIf.lib Tue May 03 22:15:19 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/donatien/code/UMTSStickNetIf/#62e3d7a3cc68
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 03 22:15:19 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da