VoteController

Dependencies:   MQTT

Fork of PGO6_VoteController_template by Jens de hoog

Files at this revision

API Documentation at this revision

Comitter:
Dieter97
Date:
Thu Oct 11 16:09:27 2018 +0000
Parent:
3:6b6cab4ad185
Commit message:
fixed sending to wrong topic

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6b6cab4ad185 -r 74736eccf6bb main.cpp
--- a/main.cpp	Thu Oct 11 15:58:11 2018 +0000
+++ b/main.cpp	Thu Oct 11 16:09:27 2018 +0000
@@ -102,7 +102,7 @@
             switch(multiclick_state){
                 case 1:
                     printf("Upvote\n");
-                    sendMessage("UPVOTE","dieter/1",&client);
+                    sendMessage("UPVOTE","dieter",&client);
                     break;
                 case 2:
                     printf("Downvote\n");