Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: CommonDefinitions.h
- Revision:
- 191:c83c1c5010ed
- Parent:
- 190:25d4e4cada40
- Child:
- 192:54b758a8eaaa
--- a/CommonDefinitions.h Sun Sep 21 07:37:31 2014 +0000 +++ b/CommonDefinitions.h Wed Sep 24 19:12:35 2014 +0000 @@ -104,16 +104,27 @@ // ----------------- Status Reporting TUNABLES ----------------- -// Tunables for RFID tags -#define FIRST_WIDGET_RFID 9909120 -#define FIRST_WIDGET_NAME "Tech 49" -#define FIRST_WIDGET_DESCRIPTION "Investigating Issue" -#define SECOND_WIDGET_RFID 9909121 -#define SECOND_WIDGET_NAME "Tech 49" -#define SECOND_WIDGET_DESCRIPTION "Issue Resolved" -#define THIRD_WIDGET_RFID 9909122 -#define THIRD_WIDGET_NAME "Tech 49" -#define THIRD_WIDGET_DESCRIPTION "Issue Escalation" +// 3 Reports for RFID-tag based support/repair conditions + #define FIRST_REPORT_RFID 7550993 + #define FIRST_REPORT_NAME "Tech 49" + #define FIRST_REPORT_DESCRIPTION "Light Out" + #define FIRST_REPORT_CONDITION "Investigating Issue" + #define FIRST_REPORT_LATITUDE "37.404120" + #define FIRST_REPORT_LONGITUDE "-121.973195" + + #define SECOND_REPORT_RFID 7567145 + #define SECOND_REPORT_NAME "Tech 49" + #define SECOND_REPORT_DESCRIPTION "Light Out" + #define SECOND_REPORT_CONDITION "Resolved - lightbulb burned out" + #define SECOND_REPORT_LATITUDE "37.404120" + #define SECOND_REPORT_LONGITUDE "-121.973195" + + #define THIRD_REPORT_RFID 7559217 + #define THIRD_REPORT_NAME "Tech 49" + #define THIRD_REPORT_DESCRIPTION "Light Out" + #define THIRD_REPORT_CONDITION "Unresolved - escalate" + #define THIRD_REPORT_LATITUDE "37.404120" + #define THIRD_REPORT_LONGITUDE "-121.973195" // ----------------- Status Reporting TUNABLES ----------------- @@ -123,15 +134,17 @@ // Buffer length for HTTPS requests #define BUFFER_LENGTH 256 -// Tunables for WidgetDB -#define DB_MAX_NAME_LENGTH 64 -#define DB_MAX_DESCRIPTION_LENGTH 128 -#define DB_MAX_NUM_WIDGETS 3 - -// convenience definitions for WidgetDB... 2 RFIDs/station -#define FIRST_WIDGET 0 -#define SECOND_WIDGET 1 -#define THIRD_WIDGET 2 +// Tunables for ReportDB + #define DB_MAX_NAME_LENGTH 64 + #define DB_MAX_DESCRIPTION_LENGTH 128 + #define DB_MAX_CONDITION_LENGTH 128 + #define DB_MAX_LATLONG_LENGTH 32 + #define DB_MAX_NUM_REPORTS 3 + + // convenience definitions for ReportDB... 3 RFID tags/station + #define FIRST_REPORT 0 + #define SECOND_REPORT 1 + #define THIRD_REPORT 2 // Philips Light Support #define PL_LIGHT_ID_DOUG 1 // Dougs Light @@ -166,8 +179,9 @@ #define VOLTAGE_POT_PIN A1 // pin for the voltage POT #define TEMP_SENSOR_PIN1 P0_0 // pin for temp sensor #define TEMP_SENSOR_PIN2 P0_1 // pin for temp sensor - #define RFID_TX_PIN P4_28 // pin for RFID sensor - #define RFID_RX_PIN P4_29 // pin for RFID sensor + #define RFID_TX_PIN D1 // pin for RFID sensor + #define RFID_RX_PIN D0 // pin for RFID sensor + #define TEMP_PIN A3 // pin for TMP36 temp sensor #endif #ifdef _ENDPOINT_NXP_PLATFORM @@ -180,6 +194,7 @@ #define TEMP_SENSOR_PIN2 p27 // pin for temp sensor #define RFID_TX_PIN p13 // pin for RFID sensor #define RFID_RX_PIN p14 // pin for RFID sensor + #define TEMP_PIN p15 // pin for TMP36 temp sensor #endif #ifdef _ENDPOINT_FREEDOM_PLATFORM @@ -190,8 +205,9 @@ #define VOLTAGE_POT_PIN p19 // pin for the voltage POT #define TEMP_SENSOR_PIN1 p28 // pin for temp sensor #define TEMP_SENSOR_PIN2 p27 // pin for temp sensor - #define RFID_TX_PIN PTC17 // pin for RFID sensor - #define RFID_RX_PIN PTC16 // pin for RFID sensor + #define RFID_TX_PIN D1 // pin for RFID sensor + #define RFID_RX_PIN D0 // pin for RFID sensor + #define TEMP_PIN A3 // pin for TMP36 temp sensor #endif #endif // _COMMON_DEFINITIONS_H_ \ No newline at end of file