add uuid to board

This commit is contained in:
Terrence committed 2025-02-11 16:56:23 +08:00
1 parent 2d718a0cbc
commit ac93e88d17
7 files changed
+77 -1

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ bool WebsocketProtocol::OpenAudioChannel() {
websocket_->SetHeader("Authorization", token.c_str());
websocket_->SetHeader("Protocol-Version", "1");
websocket_->SetHeader("Device-Id", SystemInfo::GetMacAddress().c_str());
websocket_->SetHeader("X-Uuid", Board::GetInstance().GetUuid().c_str());
websocket_->OnData([this](const char* data, size_t len, bool binary) {
if (binary) {