added modality "onOff".
This commit is contained in:
@@ -269,6 +269,8 @@ int AQH_ValueModality_fromString(const char *s)
|
||||
return AQH_ValueModality_Stats;
|
||||
else if (strcasecmp(s, "light")==0)
|
||||
return AQH_ValueModality_Light;
|
||||
else if (strcasecmp(s, "onOff")==0)
|
||||
return AQH_ValueModality_OnOff;
|
||||
}
|
||||
return AQH_ValueModality_Unknown;
|
||||
}
|
||||
@@ -288,6 +290,7 @@ const char *AQH_ValueModality_toString(int i)
|
||||
case AQH_ValueModality_TVOC: return "tvoc";
|
||||
case AQH_ValueModality_Stats: return "stats";
|
||||
case AQH_ValueModality_Light: return "light";
|
||||
case AQH_ValueModality_OnOff: return "onOff";
|
||||
case AQH_ValueModality_Unknown:
|
||||
default: return "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user