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:
- 3:9413314f8017
- Parent:
- 2:cedbc9de0521
--- a/main.cpp Fri Oct 07 01:17:37 2016 +0000
+++ b/main.cpp Fri Oct 07 01:32:30 2016 +0000
@@ -113,6 +113,7 @@
controlLED(blue);
pc.baud(115200);
+ pc.printf("\r\n\r\nWelcome to the K64F MQTT Demo!\r\n");
// set SW2 and SW3 to generate interrupt on falling edge
switch2.fall(&sw2_ISR);
@@ -130,7 +131,6 @@
char* hostname = BROKER;
int port = PORT;
- pc.printf("\r\n\r\nWelcome to the K64F MQTT Demo!\r\n");
pc.printf("\r\nConnected to local network...\r\n");
pc.printf("IP address is %s\r\n", eth.getIPAddress());
pc.printf("MAC address is %s\r\n", eth.getMACAddress());