Skip to content

Commit ac9885c

Browse files
committed
Fixed: Namespace issues with custom devices
1 parent 638bfcc commit ac9885c

31 files changed

+112
-30
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
## Version 2.9.15
3+
- Fixed: Namespace issues with custom devices
24

35
## Version 2.9.14
46
- Fixed: Cannot connect to the server.

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"maintainer": true
1414
}
1515
],
16-
"version": "2.9.14",
16+
"version": "2.9.15",
1717
"frameworks": "arduino",
1818
"platforms": [
1919
"espressif8266",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SinricPro
2-
version=2.9.14
2+
version=2.9.15
33
author=Boris Jaeger <[email protected]>
44
maintainer=Boris Jaeger <[email protected]>
55
sentence=Library for https://sinric.pro - simple way to connect your device to alexa

src/Capabilities/AirQualitySensor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ bool AirQualitySensor<T>::sendAirQualityEvent(int pm1, int pm2_5, int pm10, Stri
5454
return device->sendEvent(eventMessage);
5555
}
5656

57-
} // SINRICPRO_NAMESPACE
57+
} // SINRICPRO_NAMESPACE
58+
59+
template <typename T>
60+
using AirQualitySensor = SINRICPRO_NAMESPACE::AirQualitySensor<T>;

src/Capabilities/BrightnessController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,7 @@ bool BrightnessController<T>::handleBrightnessController(SinricProRequest &reque
135135
return success;
136136
}
137137

138-
} // SINRICPRO_NAMESPACE
138+
} // SINRICPRO_NAMESPACE
139+
140+
template <typename T>
141+
using BrightnessController = SINRICPRO_NAMESPACE::BrightnessController<T>;

src/Capabilities/ChannelController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,7 @@ bool ChannelController<T>::handleChannelController(SinricProRequest &request) {
183183
return success;
184184
}
185185

186-
} // SINRICPRO_NAMESPACE
186+
} // SINRICPRO_NAMESPACE
187+
188+
template <typename T>
189+
using ChannelController = SINRICPRO_NAMESPACE::ChannelController<T>;

src/Capabilities/ColorController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,7 @@ bool ColorController<T>::handleColorController(SinricProRequest &request) {
117117
return success;
118118
}
119119

120-
} // SINRICPRO_NAMESPACE
120+
} // SINRICPRO_NAMESPACE
121+
122+
template <typename T>
123+
using ColorController = SINRICPRO_NAMESPACE::ColorController<T>;

src/Capabilities/ColorTemperatureController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,7 @@ bool ColorTemperatureController<T>::handleColorTemperatureController(SinricProRe
174174
return success;
175175
}
176176

177-
} // SINRICPRO_NAMESPACE
177+
} // SINRICPRO_NAMESPACE
178+
179+
template <typename T>
180+
using ColorTemperatureController = SINRICPRO_NAMESPACE::ColorTemperatureController<T>;

src/Capabilities/ContactSensor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ bool ContactSensor<T>::sendContactEvent(bool detected, String cause) {
4747
return device->sendEvent(eventMessage);
4848
}
4949

50-
} // SINRICPRO_NAMESPACE
50+
} // SINRICPRO_NAMESPACE
51+
52+
template <typename T>
53+
using ContactSensor = SINRICPRO_NAMESPACE::ContactSensor<T>;

src/Capabilities/DoorController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,7 @@ bool DoorController<T>::handleDoorController(SinricProRequest &request) {
9999
return success;
100100
}
101101

102-
} // SINRICPRO_NAMESPACE
102+
} // SINRICPRO_NAMESPACE
103+
104+
template <typename T>
105+
using DoorController = SINRICPRO_NAMESPACE::DoorController<T>;

0 commit comments

Comments
 (0)