From 70481429367ca00144b24f118cbfdfb28b02967d Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期三, 26 八月 2026 15:54:31 +0800
Subject: [PATCH] add sening functions

---
 xiaozhi-esp32-2.2.6/main/protocols/mqtt_protocol.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/xiaozhi-esp32-2.2.6/main/protocols/mqtt_protocol.h b/xiaozhi-esp32-2.2.6/main/protocols/mqtt_protocol.h
index 90963db..7de7643 100644
--- a/xiaozhi-esp32-2.2.6/main/protocols/mqtt_protocol.h
+++ b/xiaozhi-esp32-2.2.6/main/protocols/mqtt_protocol.h
@@ -33,6 +33,7 @@
     bool OpenAudioChannel() override;
     void CloseAudioChannel(bool send_goodbye = true) override;
     bool IsAudioChannelOpened() const override;
+    void PrepareForNetworkStandby() override;
 
 private:
     // Alive flag for safe scheduled callbacks - set to false in destructor
@@ -52,6 +53,8 @@
     uint32_t local_sequence_;
     uint32_t remote_sequence_;
     esp_timer_handle_t reconnect_timer_;
+    bool network_standby_preparing_ = false;
+    bool audio_channel_opened_ = false;
 
     bool StartMqttClient(bool report_error=false);
     void ParseServerHello(const cJSON* root);

--
Gitblit v1.9.1