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 SocketModem nanoservice_client_1_12
Revision 0:f739ace74102, committed 2014-02-17
- 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
--- /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
