NEW:lan mode interaction optimization

Change-Id: I80eef918fe1ac4c8e306787bd7b9437262686e23
This commit is contained in:
tao wang 2022-11-29 16:20:15 +08:00 committed by Lane.Wei
parent 5a78f7ade1
commit 4a5c473058
10 changed files with 201 additions and 17 deletions

View file

@ -388,6 +388,9 @@ public:
bool is_avaliable() { return bind_state == "free"; }
time_t last_alive;
bool m_is_online;
bool m_lan_mode_connection_state{false};
void set_lan_mode_connection_state(bool state) {m_lan_mode_connection_state = state;};
bool get_lan_mode_connection_state() {return m_lan_mode_connection_state;};
int parse_msg_count = 0;
std::chrono::system_clock::time_point last_update_time; /* last received print data from machine */
std::chrono::system_clock::time_point last_push_time; /* last received print push from machine */