|
|
@ -21,11 +21,18 @@
|
|
|
|
#define DEVICE_OWNER "${DEVICE_OWNER}"
|
|
|
|
#define DEVICE_OWNER "${DEVICE_OWNER}"
|
|
|
|
#define DEVICE_ID "${DEVICE_ID}"
|
|
|
|
#define DEVICE_ID "${DEVICE_ID}"
|
|
|
|
|
|
|
|
|
|
|
|
#define SERVICE_PORT 9763
|
|
|
|
/**********************************************************************************************
|
|
|
|
#define SERVICE_EPOINT "/iotdevices/SenseBotController/"
|
|
|
|
The following two parameters are used when pushing data via the API in the API Manager
|
|
|
|
// pushalarmdata - application/json - {"owner":"","deviceId":"","replyMessage":"","time":"","key":"","value":""}
|
|
|
|
***********************************************************************************************/
|
|
|
|
// readcontrols/{owner}/{deviceId}
|
|
|
|
#define SERVICE_PORT 8281
|
|
|
|
// reply - application/json - {"owner":"","deviceId":"","replyMessage":""}
|
|
|
|
#define SERVICE_EPOINT "/sensebotdata/1.0/controller/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************************************
|
|
|
|
|
|
|
|
Use the following two parameters when pushing data directly to the JAX-RS Service
|
|
|
|
|
|
|
|
***********************************************************************************************/
|
|
|
|
|
|
|
|
//#define SERVICE_PORT 9763
|
|
|
|
|
|
|
|
//#define SERVICE_EPOINT "/sensebot/controller/"
|
|
|
|
|
|
|
|
|
|
|
|
#define BUZZER A0
|
|
|
|
#define BUZZER A0
|
|
|
|
#define LDR_PIN A1
|
|
|
|
#define LDR_PIN A1
|
|
|
|
#define TEMP_PIN A2
|
|
|
|
#define TEMP_PIN A2
|
|
|
|