mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: [STUDIO-2759] handle sequence of mqtt message, support tunnel
Change-Id: I69df95e38001c10dd4af5ef808d7945b4e33168a
This commit is contained in:
parent
0cf0bd52fc
commit
fa71bcccdc
2 changed files with 43 additions and 1 deletions
|
@ -385,6 +385,13 @@ public:
|
|||
SDCARD_STATE_NUM = 3
|
||||
};
|
||||
|
||||
enum ActiveState {
|
||||
NotActive,
|
||||
SequenceNotValid,
|
||||
SequenceValid,
|
||||
UpdateToDate
|
||||
};
|
||||
|
||||
class ExtrusionRatioInfo
|
||||
{
|
||||
public:
|
||||
|
@ -456,6 +463,10 @@ public:
|
|||
std::chrono::system_clock::time_point last_request_push; /* last received print push from machine */
|
||||
std::chrono::system_clock::time_point last_request_start; /* last received print push from machine */
|
||||
|
||||
int m_active_state = 0; // 0 - not active, 1 - active but print_sequence_id not valid, 1 - active but no update-to-date state, 2 - update-to-date
|
||||
bool is_support_tunnel_mqtt = false;
|
||||
int print_sequence_id = 0;
|
||||
|
||||
/* ams properties */
|
||||
std::map<std::string, Ams*> amsList; // key: ams[id], start with 0
|
||||
AmsTray vt_tray; // virtual tray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue