Multitech + KL46Z NanoService example with the RTOS

Dependencies:   mbed SocketModem nanoservice_client_1_12

Files at this revision

API Documentation at this revision

Comitter:
zdshelby
Date:
Mon Feb 17 21:39:28 2014 +0000
Child:
1:5147d3fa7816
Commit message:
- Initial commit with config and debug setup

Changed in this revision

config.h Show annotated file Show diff for this revision Revisions of this file
debug.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config.h	Mon Feb 17 21:39:28 2014 +0000
@@ -0,0 +1,10 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#define RD_UPDATE_PERIOD  60 // The number of seconds between NSP registration messages
+
+#define  NSP_ADDRESS    "208.111.39.209" // MWC hosted NSP demo
+#define  NSP_PORT       5683 // NSP port for CoAP/TCP interface
+#define  EP_PORT        8000 // Port to bind CoAP/TCP socket to
+
+#endif // CONFIG_H
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debug.h	Mon Feb 17 21:39:28 2014 +0000
@@ -0,0 +1,17 @@
+#ifndef DEBUG_H
+#define DEBUG_H
+
+#include "mbed.h"
+
+// Set the debugging level, 0 = off, 1 = simple, 2 = detailed
+#define DEBUG_LEVEL 1
+
+#if (DEBUG_LEVEL) == 2
+#define DEBUG(x, ...) printf("[DEBUG: %s:%d] " x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+#elif (DEBUG_LEVEL) == 1
+#define DEBUG(x, ...) printf("[DEBUG] " x "\r\n", ##__VA_ARGS__);
+#elif (DEBUG_LEVEL) == 0
+#define DEBUG(x, ...)
+#endif
+
+#endif // DEBUG_H
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 17 21:39:28 2014 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "config.h"
+#include "debug.h"
+
+
+int main() 
+{
+    DEBUG("NanoService Example for KL46Z + Multitech Cellular");
+
+    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 17 21:39:28 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/869cf507173a
\ No newline at end of file