Mihajlo Djordjevic 2020/438

Dependencies:   Adafruit_GFX 19E042PIM_MB_PINS

Files at this revision

API Documentation at this revision

Comitter:
mixidj
Date:
Sat Dec 11 16:27:19 2021 +0000
Parent:
1:a1bf28d2dbdb
Commit message:
Mihajlo Djordjevic

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r a1bf28d2dbdb -r c1c5cb1af5b0 main.cpp
--- a/main.cpp	Sat Dec 11 16:19:41 2021 +0000
+++ b/main.cpp	Sat Dec 11 16:27:19 2021 +0000
@@ -74,6 +74,16 @@
     
     while(1) {
         thread_sleep_for(WAIT_MS);
+      /*  if ((char*)message.payload == "start"){
+            char buf[100];
+            sprintf(buf,"V{POT1} = %1.2f \r\n",pot1 * (3.3));
+            message.qos = MQTT::QOS0;
+            message.retained = false;
+            message.dup = false;
+            message.payload = (void*)buf;
+            message.payloadlen=strlen(buf+1);
+            client.publish(topic_pub, message);
+            } nesto sam se pogubio ovde :(*/
         client.yield(5000);
     }
 }
\ No newline at end of file