Skip to content

Commit 432a1a8

Browse files
committed
Changed to support firmwareVersion
firmwareVersion added to support OTA
1 parent 34c311a commit 432a1a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/SinricProWebsocket.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ void WebsocketListener::setExtraHeaders() {
112112
#ifdef ESP32
113113
headers += "platform:ESP32\r\n";
114114
#endif
115-
headers += "version:" + String(SINRICPRO_VERSION);
115+
headers += "SDKVersion:" + String(SINRICPRO_VERSION) + "\r\n";
116+
117+
#ifdef FIRMWARE_VERSION
118+
headers += "firmwareVersion:" + String(FIRMWARE_VERSION);
119+
#endif
120+
116121
DEBUG_SINRIC("[SinricPro:Websocket]: headers: \r\n%s\r\n", headers.c_str());
117122
webSocket.setExtraHeaders(headers.c_str());
118123
}

0 commit comments

Comments
 (0)