Example for AV_MQTT

Dependencies:   AV_MQTT mbed

Files at this revision

API Documentation at this revision

Comitter:
Nim65s
Date:
Tue Aug 13 13:53:16 2013 +0000
Parent:
6:761a452a8a77
Commit message:
LEDs' endianness inverted

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 761a452a8a77 -r 66ff43202f50 main.cpp
--- a/main.cpp	Tue Aug 13 13:38:27 2013 +0000
+++ b/main.cpp	Tue Aug 13 13:53:16 2013 +0000
@@ -10,9 +10,9 @@
 
 void callback(const char *key, const char *value) {
     int led = atoi(value);
-    l2 = (led & 4) >> 2;
+    l4 = (led & 4) >> 2;
     l3 = (led & 2) >> 1;
-    l4 = led & 1;
+    l2 = led & 1;
 }
 
 int main() {