MQTT example using the Freescale FRDM-K64F platform without additional hardware.

Dependencies:   EthernetInterface MQTT mbed-rtos mbed HC_SR04_Ultrasonic_Library

Fork of K64F-RTOS-MQTT-Example by Mike Baylis

Revision:
1:9caf46f4ed3e
Parent:
0:9796509d718e
Child:
2:24b2b10d3bc2
diff -r 9796509d718e -r 9caf46f4ed3e main.cpp
--- a/main.cpp	Wed Feb 10 18:39:26 2016 +0000
+++ b/main.cpp	Thu Jul 27 16:08:25 2017 +0000
@@ -5,12 +5,12 @@
 #include "k64f.h"
 
 // connect options for MQTT broker
-#define BROKER "broker.mqttdashboard.com"   // MQTT broker URL
+#define BROKER "192.168.1.133"//"broker.mqttdashboard.com"   // MQTT broker URL
 #define PORT 1883                           // MQTT broker port number
-#define CLIENTID ""                         // use K64F MAC address without colons
-#define USERNAME ""                         // not required for MQTT Dashboard public broker 
+#define CLIENTID "cd23787"                         // use K64F MAC address without colons
+#define USERNAME "c1"                         // not required for MQTT Dashboard public broker 
 #define PASSWORD ""                         // not required for MQTT Dashboard public broker
-#define TOPIC ""                            // MQTT topic
+#define TOPIC "3435"                            // MQTT topic
 
 Queue<uint32_t, 6> messageQ;