Sample program for using Pubnub on AT&T IoT Starter Kit (which has the WNC modem)

Dependencies:   Pubnub_mbed2_sync WNCInterface mbed-rtos mbed

Fork of WNCInterface_M2XMQTTdemo by Avnet

Revision:
4:c9290723dce9
Parent:
3:84f5cf6f2521
Child:
5:f9dc2e9e53a8
diff -r 84f5cf6f2521 -r c9290723dce9 main.cpp
--- a/main.cpp	Fri Oct 07 01:35:19 2016 +0000
+++ b/main.cpp	Fri Oct 07 13:26:18 2016 +0000
@@ -45,9 +45,9 @@
   pc.baud(115200);
   pc.printf(CRLF CRLF "M2X MQTT Test starting..." CRLF);
 
-  eth.init(NULL,&pc);
+  pc.printf("init() returned 0x%04X" CRLF, eth.init(NULL,&pc));
   eth.connect();
-    pc.printf("IP Address: %s" CRLF, eth.getIPAddress());
+  pc.printf("IP Address: %s" CRLF, eth.getIPAddress());
   eth.doDebug(3);
   
   while (true) {