pro_client_device

Dependencies:   C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed

Fork of IBMIoTClientEthernetExample by IBM Watson IoT

Revision:
11:7a6df9a2dcdc
Parent:
10:0b5e0dfee08e
Child:
12:8b480eb8a496
diff -r 0b5e0dfee08e -r 7a6df9a2dcdc main.cpp
--- a/main.cpp	Mon Oct 20 14:37:33 2014 +0000
+++ b/main.cpp	Tue Mar 10 08:24:52 2015 +0000
@@ -44,7 +44,10 @@
 
 #define MQTT_MAX_PACKET_SIZE 250
 
-#if defined(TARGET_LPC1768)
+#if defined(TARGET_UBLOX_C027)
+#warning "Compiling for mbed C027"
+#include "C027.h"
+#elif defined(TARGET_LPC1768)
 #warning "Compiling for mbed LPC1768"
 #include "LPC1768.h"
 #elif defined(TARGET_K64F)
@@ -194,6 +197,7 @@
     
     char hostname[strlen(org) + strlen(iot_ibm) + 1];
     sprintf(hostname, "%s%s", org, iot_ibm);
+    DEBUG("hostname is %s\n", hostname);
     int rc = ipstack->connect(hostname, IBM_IOT_PORT);
     if (rc != 0)
         return rc;