Skip to content

Commit 2bed80a

Browse files
committed
Fixed .c_str() in SinricProId.h
1 parent 73d58e0 commit 2bed80a

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
## Version 2.7.3
3+
Fixed
4+
- `.c_str()` for AppKey, AppSecret and DeviceId return now a valid `const char*`
5+
6+
27
## Version 2.7.2
38
Fixed:
49
- The examples are now located in subfolders if more than one example is provided

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"maintainer": true
1414
}
1515
],
16-
"version": "2.7.2",
16+
"version": "2.7.3",
1717
"frameworks": "arduino",
1818
"platforms": [
1919
"espressif8266",

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SinricPro
2-
version=2.7.2
2+
version=2.7.3
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/SinricProConfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Version Configuration
2626
#define SINRICPRO_VERSION_MAJOR 2
2727
#define SINRICPRO_VERSION_MINOR 7
28-
#define SINRICPRO_VERSION_REVISION 2
28+
#define SINRICPRO_VERSION_REVISION 3
2929
#define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
3030
#define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
3131

src/SinricProId.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class SinricProId {
122122
operator String() const { return _data.toString(); }
123123

124124
String toString() const { return _data.toString(); };
125-
const char* c_str() const { return _data.toString().c_str(); }
125+
const char* c_str() const { static String str = _data.toString(); return str.c_str(); }
126126
bool isValid() const { return !compare(SinricProId<T>()); }
127127

128128
private:

0 commit comments

Comments
 (0)