Skip to content

Commit 638bfcc

Browse files
authored
Merge pull request #247 from sinricpro/2.9.14
Fixed: Cannot connect to the server.
2 parents c9a78c5 + 1ea0e13 commit 638bfcc

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Version 2.9.14
4+
- Fixed: Cannot connect to the server.
5+
36
## Version 2.9.13
47
- "firmwareVersion" WebSocket header added.
58
- "version" WebSocket header renamed to "SDKVersion"

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"maintainer": true
1414
}
1515
],
16-
"version": "2.9.13",
16+
"version": "2.9.14",
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.9.13
2+
version=2.9.14
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/SinricProVersion.h

+1-1
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 13
9+
#define SINRICPRO_VERSION_REVISION 14
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

src/SinricProWebsocket.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ WebsocketListener::~WebsocketListener() {
101101
}
102102

103103
void WebsocketListener::setExtraHeaders() {
104-
String headers = "appkey:" + appKey + "\r\n";
105-
headers += "deviceids:" + deviceIds + "\r\n";
106-
headers += "restoredevicestates:" + String(restoreDeviceStates?"true":"false") + "\r\n";
107-
headers += "ip:" + WiFi.localIP().toString() + "\r\n";
108-
headers += "mac:" + WiFi.macAddress() + "\r\n";
104+
String headers = "appkey:" + appKey;
105+
headers += "\r\ndeviceids:" + deviceIds;
106+
headers += "\r\nrestoredevicestates:" + String(restoreDeviceStates ? "true" : "false");
107+
headers += "\r\nip:" + WiFi.localIP().toString();
108+
headers += "\r\nmac:" + WiFi.macAddress();
109109
#ifdef ESP8266
110-
headers += "platform:ESP8266\r\n";
110+
headers += "\r\nplatform:ESP8266";
111111
#endif
112112
#ifdef ESP32
113-
headers += "platform:ESP32\r\n";
113+
headers += "\r\nplatform:ESP32";
114114
#endif
115-
headers += "SDKVersion:" + String(SINRICPRO_VERSION) + "\r\n";
115+
headers += "\r\nSDKVersion:" + String(SINRICPRO_VERSION);
116116

117117
#ifdef FIRMWARE_VERSION
118-
headers += "firmwareVersion:" + String(FIRMWARE_VERSION);
118+
headers += "\r\nfirmwareVersion:" + String(FIRMWARE_VERSION);
119119
#endif
120120

121121
DEBUG_SINRIC("[SinricPro:Websocket]: headers: \r\n%s\r\n", headers.c_str());

0 commit comments

Comments
 (0)