asdasd

Dependencies:   Cayenne-MQTT-mbed mbed X_NUCLEO_IKS01A2 X_NUCLEO_IDW01M1v2 NetworkSocketAPI TMP36

Files at this revision

API Documentation at this revision

Comitter:
percu
Date:
Wed Dec 23 23:39:17 2020 +0000
Parent:
6:8aa852ca98d8
Commit message:
twoj;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8aa852ca98d8 -r 4265a0d54e46 main.cpp
--- a/main.cpp	Wed Dec 23 21:46:54 2020 +0000
+++ b/main.cpp	Wed Dec 23 23:39:17 2020 +0000
@@ -166,7 +166,7 @@
         // Publish some example data every few seconds. This should be changed to send your actual data to Cayenne.
         if (timer.expired()) {
             int error = 0;
-            if ((error = mqttClient.publishData(DATA_TOPIC, 5, TYPE_TEMPERATURE, UNIT_CELSIUS, stopnie)) != CAYENNE_SUCCESS) {
+            if ((error = mqttClient.publishData(stopnie)) != CAYENNE_SUCCESS) {
                 printf("Publish temperature failed, error: %d\n", error);
             }
             // Restart the countdown timer for publishing data every 5 seconds. Change the timeout parameter to publish at a different interval.