add uuid to board

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

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) {