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>;

src/Capabilities/Doorbell.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ bool Doorbell<T>::sendDoorbellEvent(String cause) {
4646
return device->sendEvent(eventMessage);
4747
}
4848

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

src/Capabilities/EqualizerController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,7 @@ bool EqualizerController<T>::handleEqualizerController(SinricProRequest &request
213213
return success;
214214
}
215215

216-
} // SINRICPRO_NAMESPACE
216+
} // SINRICPRO_NAMESPACE
217+
218+
template <typename T>
219+
using EqualizerController = SINRICPRO_NAMESPACE::EqualizerController<T>;

src/Capabilities/InputController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,7 @@ bool InputController<T>::handleInputController(SinricProRequest &request) {
102102
return success;
103103
}
104104

105-
} // SINRICPRO_NAMESPACE
105+
} // SINRICPRO_NAMESPACE
106+
107+
template <typename T>
108+
using InputController = SINRICPRO_NAMESPACE::InputController<T>;

src/Capabilities/KeypadController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ bool KeypadController<T>::handleKeypadController(SinricProRequest &request) {
7878
return success;
7979
}
8080

81-
} // SINRICPRO_NAMESPACE
81+
} // SINRICPRO_NAMESPACE
82+
83+
template <typename T>
84+
using KeypadController = SINRICPRO_NAMESPACE::KeypadController<T>;

src/Capabilities/LockController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,7 @@ bool LockController<T>::handleLockController(SinricProRequest &request) {
110110
return success;
111111
}
112112

113-
} // SINRICPRO_NAMESPACE
113+
} // SINRICPRO_NAMESPACE
114+
115+
template <typename T>
116+
using LockController = SINRICPRO_NAMESPACE::LockController<T>;

src/Capabilities/MediaController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,7 @@ bool MediaController<T>::handleMediaController(SinricProRequest &request) {
102102
return success;
103103
}
104104

105-
} // SINRICPRO_NAMESPACE
105+
} // SINRICPRO_NAMESPACE
106+
107+
template <typename T>
108+
using MediaController = SINRICPRO_NAMESPACE::MediaController<T>;

src/Capabilities/ModeController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,7 @@ bool ModeController<T>::handleModeController(SinricProRequest &request) {
170170
return success;
171171
}
172172

173-
} // SINRICPRO_NAMESPACE
173+
} // SINRICPRO_NAMESPACE
174+
175+
template <typename T>
176+
using ModeController = SINRICPRO_NAMESPACE::ModeController<T>;

src/Capabilities/MotionSensor.h

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

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

src/Capabilities/MuteController.h

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

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

src/Capabilities/PercentageController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,7 @@ bool PercentageController<T>::handlePercentageController(SinricProRequest &reque
136136
return success;
137137
}
138138

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

src/Capabilities/PowerLevelController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,7 @@ bool PowerLevelController<T>::handlePowerLevelController(SinricProRequest &reque
137137
return success;
138138
}
139139

140-
} // SINRICPRO_NAMESPACE
140+
} // SINRICPRO_NAMESPACE
141+
142+
template <typename T>
143+
using PowerLevelController = SINRICPRO_NAMESPACE::PowerLevelController<T>;

src/Capabilities/PowerSensor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,7 @@ float PowerSensor<T>::getWattHours(unsigned long currentTimestamp) {
8585
return 0;
8686
}
8787

88-
} // SINRICPRO_NAMESPACE
88+
} // SINRICPRO_NAMESPACE
89+
90+
template <typename T>
91+
using PowerSensor = SINRICPRO_NAMESPACE::PowerSensor<T>;

src/Capabilities/PowerStateController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,7 @@ bool PowerStateController<T>::handlePowerStateController(SinricProRequest &reque
102102
return success;
103103
}
104104

105-
} // SINRICPRO_NAMESPACE
105+
} // SINRICPRO_NAMESPACE
106+
107+
template <typename T>
108+
using PowerStateController = SINRICPRO_NAMESPACE::PowerStateController<T>;

src/Capabilities/RangeController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,7 @@ bool RangeController<T>::handleRangeController(SinricProRequest &request) {
320320
return false;
321321
}
322322

323-
} // SINRICPRO_NAMESPACE
323+
} // SINRICPRO_NAMESPACE
324+
325+
template <typename T>
326+
using RangeController = SINRICPRO_NAMESPACE::RangeController<T>;

src/Capabilities/SettingController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ bool SettingController<T>::handleSettingController(SinricProRequest &request) {
5454
return success;
5555
}
5656

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

src/Capabilities/TemperatureSensor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ bool TemperatureSensor<T>::sendTemperatureEvent(float temperature, float humidit
4949
return device->sendEvent(eventMessage);
5050
}
5151

52-
} // SINRICPRO_NAMESPACE
52+
} // SINRICPRO_NAMESPACE
53+
54+
template <typename T>
55+
using TemperatureSensor = SINRICPRO_NAMESPACE::TemperatureSensor<T>;

src/Capabilities/ThermostatController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,7 @@ bool ThermostatController<T>::handleThermostatController(SinricProRequest &reque
208208
return success;
209209
}
210210

211-
} // SINRICPRO_NAMESPACE
211+
} // SINRICPRO_NAMESPACE
212+
213+
template <typename T>
214+
using ThermostatController = SINRICPRO_NAMESPACE::ThermostatController<T>;

src/Capabilities/ToggleController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,7 @@ bool ToggleController<T>::handleToggleController(SinricProRequest &request) {
108108
return success;
109109
}
110110

111-
} // SINRICPRO_NAMESPACE
111+
} // SINRICPRO_NAMESPACE
112+
113+
template <typename T>
114+
using ToggleController = SINRICPRO_NAMESPACE::ToggleController<T>;

src/Capabilities/VolumeController.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,7 @@ bool VolumeController<T>::handleVolumeController(SinricProRequest &request) {
139139
return success;
140140
}
141141

142-
} // SINRICPRO_NAMESPACE
142+
} // SINRICPRO_NAMESPACE
143+
144+
template <typename T>
145+
using VolumeController = SINRICPRO_NAMESPACE::VolumeController<T>;

src/SinricProDevice.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ bool SinricProDevice::handleRequest(SinricProRequest &request) {
109109
return false;
110110
}
111111

112-
} // SINRICPRO_NAMESPACE
112+
} // SINRICPRO_NAMESPACE
113+
114+
using SinricProDevice = SINRICPRO_NAMESPACE::SinricProDevice;

src/SinricProVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Version Configuration
77
#define SINRICPRO_VERSION_MAJOR 2
88
#define SINRICPRO_VERSION_MINOR 9
9-
#define SINRICPRO_VERSION_REVISION 14
9+
#define SINRICPRO_VERSION_REVISION 15
1010
#define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
1111
#define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
1212
#define SINRICPRO_VERISON_INT SINRICPRO_VERSION_MAJOR * 1000000 + SINRICPRO_VERSION_MINOR * 1000 + SINRICPRO_VERSION_REVISION

0 commit comments

Comments
 (0)