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: C027Interface
Fork of U_Blox_DeviceConnector by
Revision 64:bb80622ae5e6, committed 2017-02-02
- Comitter:
- sarahmarshy
- Date:
- Thu Feb 02 21:19:33 2017 +0000
- Parent:
- 63:81c0432cb506
- Commit message:
- Add C027 example;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C027Interface.lib Thu Feb 02 21:19:33 2017 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/NetworkSocketAPI/code/C027Interface/#3f1e33e638a4
--- a/main.cpp Thu Feb 02 19:46:23 2017 +0000
+++ b/main.cpp Thu Feb 02 21:19:33 2017 +0000
@@ -44,6 +44,9 @@
#define MESH
#include "NanostackInterface.h"
ThreadInterface mesh;
+#elif MBED_CONF_APP_NETWORK_INTERFACE == CELL
+# include "C027Interface.h"
+ C027Interface cell;
#endif
#if defined(MESH)
@@ -405,6 +408,10 @@
output.printf("\n\rConnecting to ethernet...\r\n");
connect_success = eth.connect();
network_interface = ð
+#elif MBED_CONF_APP_NETWORK_INTERFACE == CELL
+ output.printf("Using Cell\r\n");
+ connect_success = cell.connect(MBED_CONF_APP_CELL_APN);
+ network_interface = &cell;
#endif
#ifdef MESH
output.printf("\n\rConnecting to Mesh...\r\n");
--- a/mbed.bld Thu Feb 02 19:46:23 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5 \ No newline at end of file
--- a/mbed_app.json Thu Feb 02 19:46:23 2017 +0000
+++ b/mbed_app.json Thu Feb 02 21:19:33 2017 +0000
@@ -1,9 +1,13 @@
{
"config": {
"network-interface":{
- "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD",
- "value": "ETHERNET"
+ "help": "options are ETHERNET,WIFI,MESH_LOWPAN_ND,MESH_THREAD, CELL",
+ "value": "CELL"
},
+ "cell-apn":{
+ "help": "apn for cell device",
+ "value": "\"wap.cingular\""
+ },
"mesh_radio_type": {
"help": "options are ATMEL, MCR20",
"value": "ATMEL"
