avr, aqhome: added modality MOTION.
This commit is contained in:
@@ -259,6 +259,8 @@ int AQH_ValueModality_fromString(const char *s)
|
||||
return AQH_ValueModality_RGB;
|
||||
else if (strcasecmp(s, "rgbw")==0)
|
||||
return AQH_ValueModality_RGBW;
|
||||
else if (strcasecmp(s, "motion")==0)
|
||||
return AQH_ValueModality_Motion;
|
||||
}
|
||||
return AQH_ValueModality_Unknown;
|
||||
}
|
||||
@@ -273,6 +275,7 @@ const char *AQH_ValueModality_toString(int i)
|
||||
case AQH_ValueModality_Door: return "door";
|
||||
case AQH_ValueModality_RGB: return "rgb";
|
||||
case AQH_ValueModality_RGBW: return "rgbw";
|
||||
case AQH_ValueModality_Motion: return "motion";
|
||||
case AQH_ValueModality_Unknown:
|
||||
default: return "unknown";
|
||||
}
|
||||
|
||||
@@ -41,7 +41,8 @@ enum {
|
||||
AQH_ValueModality_Humidity,
|
||||
AQH_ValueModality_Door,
|
||||
AQH_ValueModality_RGB,
|
||||
AQH_ValueModality_RGBW
|
||||
AQH_ValueModality_RGBW,
|
||||
AQH_ValueModality_Motion
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ const char *AQH_Value3Msg_GetValueTypeName(const GWEN_MSG *msg)
|
||||
case AQH_MSG_VALUE3_TYPE_TEMP: return "temperature";
|
||||
case AQH_MSG_VALUE3_TYPE_HUMIDITY: return "humidity";
|
||||
case AQH_MSG_VALUE3_TYPE_DOOR: return "door_window";
|
||||
case AQH_MSG_VALUE3_TYPE_MOTION: return "motion";
|
||||
default: break;
|
||||
}
|
||||
return "unknown";
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define AQH_MSG_VALUE3_TYPE_TEMP 1
|
||||
#define AQH_MSG_VALUE3_TYPE_HUMIDITY 2
|
||||
#define AQH_MSG_VALUE3_TYPE_DOOR 3
|
||||
#define AQH_MSG_VALUE3_TYPE_MOTION 6
|
||||
|
||||
|
||||
AQHOME_API GWEN_MSG *AQH_Value3Msg_new(uint8_t srcAddr, uint8_t destAddr,
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
.equ AQHOME_VALUETYPE_TEMP = 1
|
||||
.equ AQHOME_VALUETYPE_HUMIDITY = 2
|
||||
.equ AQHOME_VALUETYPE_DOOR = 3
|
||||
.equ AQHOME_VALUETYPE_RGB = 4
|
||||
.equ AQHOME_VALUETYPE_RGBW = 5
|
||||
.equ AQHOME_VALUETYPE_MOTION = 6
|
||||
|
||||
|
||||
.equ AQHOME_FW_TYPE_ATT84_BASE = 0
|
||||
|
||||
Reference in New Issue
Block a user