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.
Fork of HelloMQTT by
Diff: main.cpp
- Revision:
- 21:a68bd76740f9
- Parent:
- 20:49c9daf2b0ff
- Child:
- 23:e3422d0d3cc2
--- a/main.cpp Tue Jan 10 18:10:17 2017 -0600 +++ b/main.cpp Thu Sep 07 10:06:22 2017 +0100 @@ -25,8 +25,8 @@ */ - // change this to 0 to output messages to serial instead of LCD -#define USE_LCD 1 + // change this to 1 to output messages to LCD instead of serial +#define USE_LCD 0 #if USE_LCD #include "C12832.h" @@ -75,7 +75,7 @@ MQTTNetwork mqttNetwork(network); - MQTT::Client<MQTTNetwork, Countdown> client = MQTT::Client<MQTTNetwork, Countdown>(mqttNetwork); + MQTT::Client<MQTTNetwork, Countdown> client(mqttNetwork); const char* hostname = "m2m.eclipse.org"; int port = 1883;