From 15d472ae8ea2bb15b1f01790aa9c572e17cc6974 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 13 Apr 2018 17:02:10 -0700 Subject: [PATCH] Making variable names and types more precise, e.g. machineId instead of deviceKey. --- version2/src/C/Sensor-Arduino.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version2/src/C/Sensor-Arduino.ino b/version2/src/C/Sensor-Arduino.ino index 99bacdc..48614b2 100644 --- a/version2/src/C/Sensor-Arduino.ino +++ b/version2/src/C/Sensor-Arduino.ino @@ -9,7 +9,7 @@ #define DHTPIN 2 // what pin we're connected to #define DHTTYPE DHT22 // DHT 22 (AM2302) // IoTCloud -#define SLEEP_TIME 30 // Sleep time in seconds +#define SLEEP_TIME 1800 // Sleep time in seconds // Initialize DHT sensor for normal 16mhz Arduino DHT dht(DHTPIN, DHTTYPE); @@ -44,14 +44,14 @@ void setup() { //} //Serial.println(); - int deviceKey = (int) mac[4] + mac[5]; + int64_t machineId = (int64_t) mac[4] + mac[5]; // IoTCloud library timer = TimingSingleton_getInstance(); foundError = false; transStatusList = new MyVector(); IoTString *baseurl = new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"); IoTString *password = new IoTString("reallysecret"); - t1 = new Table(baseurl, password, deviceKey, -1); + t1 = new Table(baseurl, password, machineId, -1); t1->rebuild(); baseurl->releaseRef(); -- 2.34.1