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: C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample-MACfix-DebugFix by
Diff: main.cpp
- Revision:
- 11:7a6df9a2dcdc
- Parent:
- 10:0b5e0dfee08e
- Child:
- 12:8b480eb8a496
--- 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;
