Arduino training equivalents of LED "Blinky but using pub/sub and MQTT broker
Diff: mqtt-mbed-blinky.cpp
- Revision:
- 1:d55b95d9629b
- Parent:
- 0:9890d6036611
--- a/mqtt-mbed-blinky.cpp Sat May 10 19:26:23 2014 +0000 +++ b/mqtt-mbed-blinky.cpp Sat May 10 19:36:19 2014 +0000 @@ -11,7 +11,10 @@ const char* deviceName = "mbed"; const char* jsonKV = "{Value:ON}"; -void callback(char *topic, byte *payload, unsigned int length) {//callback} +void callback(char *topic, byte *payload, unsigned int length) {//callback +} +// no username, no password (version <= MQTT v3.0) +PubSubClient litmus(server,port,callback,clientId int main() {