mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 21:02:23 +00:00
ENH:auto switch to using local broker for data transmission
jira:[STUDIO-11616] Change-Id: I91066a629684dcff4efc73f310c2e0a7843954f4 (cherry picked from commit ac805e7d9150f56d40ec261fd2ed4007e1413b8e)
This commit is contained in:
@@ -1109,7 +1109,7 @@ public:
|
||||
std::vector<HMSItem> hms_list;
|
||||
|
||||
/* machine mqtt apis */
|
||||
int connect(bool is_anonymous = false, bool use_openssl = true);
|
||||
int connect(bool use_openssl = true);
|
||||
int disconnect();
|
||||
|
||||
json_diff print_json;
|
||||
@@ -1305,7 +1305,7 @@ public:
|
||||
int publish_json(std::string json_str, int qos = 0, int flag = 0);
|
||||
int cloud_publish_json(std::string json_str, int qos = 0, int flag = 0);
|
||||
int local_publish_json(std::string json_str, int qos = 0, int flag = 0);
|
||||
int parse_json(std::string payload, bool key_filed_only = false);
|
||||
int parse_json(std::string tunnel, std::string payload, bool key_filed_only = false);
|
||||
int publish_gcode(std::string gcode_str);
|
||||
|
||||
std::string setting_id_to_type(std::string setting_id, std::string tray_type);
|
||||
@@ -1324,6 +1324,15 @@ public:
|
||||
bool is_firmware_info_valid();
|
||||
std::string get_string_from_fantype(int type);
|
||||
|
||||
/*for local mqtt tunnel try*/
|
||||
bool nt_try_local_tunnel { false };
|
||||
bool nt_use_local_tunnel { false };
|
||||
int nt_cloud_full_msg_count { 0 };
|
||||
int nt_local_full_msg_count { 0 };
|
||||
void nt_condition_local_tunnel();
|
||||
void nt_restore_cloud_tunnel();
|
||||
void nt_reset_data();
|
||||
|
||||
/*for more extruder*/
|
||||
bool is_enable_np{ false };
|
||||
bool is_enable_ams_np{ false };
|
||||
|
||||
Reference in New Issue
Block a user