Dreamforce 2014 Demo of RFID-based Salesforce Case generation for status reporting.
Dependencies: ID12RFID ReportDB SalesforceCaseGenerator SalesforceInterface
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Revision 23:dcc1ade67468, committed 2014-10-07
- Comitter:
- ansond
- Date:
- Tue Oct 07 22:05:25 2014 +0000
- Parent:
- 21:2b85d1442d34
- Commit message:
- comment updates
Changed in this revision
StatusReporter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/StatusReporter.cpp Mon Oct 06 03:15:01 2014 +0000 +++ b/StatusReporter.cpp Tue Oct 07 22:05:25 2014 +0000 @@ -25,7 +25,10 @@ // ****************** DreamForce 2014 ******************// - // Temperature sensor - The TMP36 sensor uses A3 in the shield.. See Definitions.h for the define. + // TEMP SENSOR - The TMP36 sensor uses A3 in the shield.. See Definitions.h for the define. + // + // Please uncomment this line below to bind to your TMP36 sensor + // // AnalogIn tmp36_temp_sensor(TEMP_PIN); // ****************** DreamForce 2014 ******************// @@ -41,13 +44,22 @@ // Calculate the ambient temperature of the TMP36 sensor in C... int StatusReporter::getLocalTemperature() { - // Temperature sensor output voltage per TMP36 data sheet + // TEMP SENSOR output voltage per TMP36 data sheet + // + // Celcius temperature for the TMP36 sensor is calulated as follows: + // tempC = ((temperature_sensor_voltage*3.3) - 0.6) * 100.0; + // + // FYI, the shield provides 3.3V to the TMP36 sensor. // - // Celcius temperature is calulated as follows: - // tempC = ((temperature_sensor_voltage*3.3) - 0.6) * 100.0; + // You can provide this calculation by copying this code: + // + // float tempC = (float)(((float)tmp36_temp_sensor*3.3)-0.600)*100.0; // - // Example: float tempC = (float)(((float)tmp36_temp_sensor*3.3)-0.600)*100.0; + // in place of // + // float tempC = 0.0; + // + // below. float tempC = 0.0;