Skip to content

Commit c5a606a

Browse files
committed
Implemented mac and IP address at startup:
#76 (comment)
1 parent a58f621 commit c5a606a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## Version 2.5.1
3+
New:
4+
- added IP and MAC address to header
5+
26
## Version 2.5.0
37
New:
48
- Speaker device supports SelectInput

src/SinricProWebsocket.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ void websocketListener::setExtraHeaders() {
6565
String headers = "appkey:" + socketAuthToken + "\r\n";
6666
headers += "deviceids:" + deviceIds + "\r\n";
6767
headers += "restoredevicestates:" + String(restoreDeviceStates?"true":"false") + "\r\n";
68+
headers += "ip:" + WiFi.localIP().toString() + "\r\n";
69+
headers += "mac:" + WiFi.macAddress() + "\r\n";
6870
#ifdef ESP8266
6971
headers += "platform:ESP8266\r\n";
7072
#endif

0 commit comments

Comments
 (0)