mbedConnectorInterface sample endpoint utilizing 3g cellular radio as the underlying connection transport.

Dependencies:   LM75B mbed mbedConnectorInterface mbedEndpointNetwork_Ublox

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Mon Jul 27 02:51:14 2015 +0000
Parent:
9:0370006a6988
Child:
11:4ae75a76dbe5
Commit message:
updated header structure

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbedEndpointNetwork.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Jul 25 07:07:48 2015 +0000
+++ b/main.cpp	Mon Jul 27 02:51:14 2015 +0000
@@ -19,24 +19,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
+ 
 // mbed Connector Interface (configuration)
 #include "mbedConnectorInterface.h"
 
-// U-Blox Cellular Support
-#include "MBEDUbloxCellRadio.h"
-MDMSerial modem;
-MBEDUbloxCellRadio cellular((void *)&modem);
-
-// mbed Connector Endpoint includes
-#include "ConnectorEndpoint.h"
-#include "OptionsBuilder.h"
-
-// USB Serial port access for debugging/logging
-RawSerial pc(USBTX,USBRX);
-
-// Logging facility
-Logger logger(&pc);
+// mbed Endpoint Network
+#include "mbedEndpointNetwork.h"
 
 // Static Resources
 #include "StaticResource.h"
@@ -73,11 +61,10 @@
 #define MY_ENDPOINT_NAME                       "mbed-3g-endpoint"
 
 // My NSP Domain
-#define MY_NSP_DOMAIN                          "domain" 
+#define MY_NSP_DOMAIN                          "domain"                         
 
 // Customization Example: My custom NSP IPv4 address and NSP CoAP port 
 uint8_t my_nsp_address[NSP_IP_ADDRESS_LENGTH] = {23,99,29,171};       // connector (api.connector.mbed.org)
-
 int my_nsp_coap_port                          = 5683;
 
 // called from the Endpoint::start() below to create resources and the endpoint internals...
@@ -105,8 +92,8 @@
                    
                  // Add my specific physical dynamic resources...
                  .addResource(&light)
-                 .addResource(&temperature,10000)           // observe every 10 seconds
-                 .addResource(&location,10000)              // observe every 10 seconds
+                 .addResource(&temperature,10000)     // observe every 10 seconds
+                 .addResource(&location,30000)        // observe every 30 seconds
                    
                  // finalize the configuration...
                  .build();
--- a/mbedEndpointNetwork.lib	Sat Jul 25 07:07:48 2015 +0000
+++ b/mbedEndpointNetwork.lib	Mon Jul 27 02:51:14 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/ansond/code/mbedEndpointNetwork_Ublox/#55574dfd2fd3
+http://developer.mbed.org/users/ansond/code/mbedEndpointNetwork_Ublox/#172c371557fa