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: WNCInterface mbed-rtos mbed
See the README for details on this example program. NOTE: When started, the program can take up to 40 seconds before it will respond. This delay is the time required for the WNC Data Module to connect with the network.
Diff: main.cpp
- Revision:
- 1:368874dc3385
- Parent:
- 0:73334e2a82be
- Child:
- 2:cedbc9de0521
--- a/main.cpp Wed Sep 21 17:32:51 2016 +0000
+++ b/main.cpp Tue Sep 27 20:22:30 2016 +0000
@@ -19,7 +19,8 @@
#define TOPIC "jmf/Test1" // MQTT topic
Queue<uint32_t, 6> messageQ;
-
+MODSERIAL pc(USBTX,USBRX,256,256);
+
struct rcvd_errs{
int err;
char *er;
@@ -110,7 +111,9 @@
char* topic = TOPIC;
// turn off LED
controlLED(blue);
-
+
+ pc.baud(115200);
+
// set SW2 and SW3 to generate interrupt on falling edge
switch2.fall(&sw2_ISR);
switch3.fall(&sw3_ISR);