STM32F103C8T6-Cayenne-WIZnet_SD1306_BMP280

Dependencies:   Cayenne-MQTT-mbed mbed Cayenne-WIZnet_Library WIZnet_Library BME280

Files at this revision

API Documentation at this revision

Comitter:
jburhenn
Date:
Fri Nov 04 19:33:07 2016 +0000
Parent:
3:9b9e0ca8956f
Child:
5:f3de9c6ca8f5
Commit message:
Updated types and units.

Changed in this revision

Cayenne-MQTT-mbed.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Cayenne-MQTT-mbed.lib	Wed Oct 26 23:11:17 2016 +0000
+++ b/Cayenne-MQTT-mbed.lib	Fri Nov 04 19:33:07 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/myDevicesIoT/code/Cayenne-MQTT-mbed/#aec9cfdd4c8e
+http://developer.mbed.org/teams/myDevicesIoT/code/Cayenne-MQTT-mbed/#085bcf2e9a18
--- a/main.cpp	Wed Oct 26 23:11:17 2016 +0000
+++ b/main.cpp	Fri Nov 04 19:33:07 2016 +0000
@@ -146,13 +146,13 @@
         // 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, 0, TEMPERATURE, CELSIUS, 30.5)) != CAYENNE_SUCCESS) {
+            if ((error = mqttClient.publishData(DATA_TOPIC, 0, TYPE_TEMPERATURE, UNIT_CELSIUS, 30.5)) != CAYENNE_SUCCESS) {
                 printf("Publish temperature failed, error: %d\n", error);
             }
-            if ((error = mqttClient.publishData(DATA_TOPIC, 1, LUMINOSITY, LUX, 1000)) != CAYENNE_SUCCESS) {
+            if ((error = mqttClient.publishData(DATA_TOPIC, 1, TYPE_LUMINOSITY, UNIT_LUX, 1000)) != CAYENNE_SUCCESS) {
                 printf("Publish luminosity failed, error: %d\n", error);
             }
-            if ((error = mqttClient.publishData(DATA_TOPIC, 2, BAROMETRIC_PRESSURE, HECTOPASCAL, 800)) != CAYENNE_SUCCESS) {
+            if ((error = mqttClient.publishData(DATA_TOPIC, 2, TYPE_BAROMETRIC_PRESSURE, UNIT_HECTOPASCAL, 800)) != CAYENNE_SUCCESS) {
                 printf("Publish barometric pressure failed, error: %d\n", error);
             }
             timer.countdown_ms(5000);