do not allocate memory if old IoT protocol is not used

This commit is contained in:
Terrence
2025-05-23 04:26:47 +08:00
parent 5da66773d5
commit 55a1032779
2 changed files with 9 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ void McpServer::AddCommonTools() {
return Board::GetInstance().GetDeviceStatusJson();
});
AddTool("self.speaker.set_volume",
AddTool("self.audio_speaker.set_volume",
"Set the volume of the audio speaker. If the current volume is unknown, you must call `self.get_device_status` tool first and then call this tool.",
PropertyList({
Property("volume", kPropertyTypeInteger, 0, 100)