Addressed issue with new Characteristic enum constants
This commit is contained in:
parent
ead05d8690
commit
83ad277aa0
|
|
@ -32,8 +32,7 @@ void setup() {
|
|||
Serial.begin(115200);
|
||||
|
||||
homeSpan.setLogLevel(2);
|
||||
// homeSpan.enableWebLog(500,"pool.ntp.org","UTC");
|
||||
// homeSpan.setWifiCallback(wifiEstablished);
|
||||
homeSpan.enableWebLog(500);
|
||||
|
||||
homeSpan.begin(Category::Lighting,"HomeSpan Max");
|
||||
|
||||
|
|
@ -41,7 +40,7 @@ void setup() {
|
|||
new Service::AccessoryInformation();
|
||||
new Characteristic::Identify();
|
||||
|
||||
for(int i=0;i<40;i++){
|
||||
for(int i=0;i<139;i++){
|
||||
new SpanAccessory();
|
||||
new Service::AccessoryInformation();
|
||||
new Characteristic::Identify();
|
||||
|
|
@ -62,5 +61,4 @@ void setup() {
|
|||
void loop(){
|
||||
|
||||
homeSpan.poll();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -610,7 +610,7 @@ class SpanCharacteristic{
|
|||
case FORMAT::DATA:
|
||||
break;
|
||||
}
|
||||
return(0); // included to prevent compiler warnings
|
||||
return((T)0); // included to prevent compiler warnings
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
@ -771,7 +771,7 @@ class SpanCharacteristic{
|
|||
}
|
||||
|
||||
if(val < uvGet<T>(minValue) || val > uvGet<T>(maxValue)){
|
||||
LOG0("\n*** WARNING: Attempt to update Characteristic::%s with setVal(%g) is out of range [%g,%g]. This may cause device to become non-reponsive!\n\n",
|
||||
LOG0("\n*** WARNING: Attempt to update Characteristic::%s with setVal(%g) is out of range [%g,%g]. This may cause device to become non-responsive!\n\n",
|
||||
hapName,(double)val,uvGet<double>(minValue),uvGet<double>(maxValue));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -520,7 +520,7 @@ namespace Characteristic {
|
|||
CREATE_CHAR(double,TargetRelativeHumidity,0,0,100);
|
||||
CREATE_CHAR(double,TargetTemperature,16,10,38);
|
||||
CREATE_CHAR(uint8_t,TargetVisibilityState,0,0,1);
|
||||
CREATE_CHAR(uint8_t,TemperatureDisplayUnits,0,0,1);
|
||||
CREATE_CHAR(uint8_t,TemperatureDisplayUnits,0,0,1,CELSIUS,FAHRENHEIT);
|
||||
CREATE_CHAR(int,TargetVerticalTiltAngle,0,-90,90);
|
||||
CREATE_CHAR(uint8_t,ValveType,0,0,3);
|
||||
CREATE_CHAR(const char *,Version,"1.0.0",0,1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue