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:
tao wang
2025-05-10 13:28:49 +08:00
committed by Noisyfox
parent b0cfd51d3c
commit 0317e0dd88
6 changed files with 95 additions and 66 deletions

View File

@@ -2351,9 +2351,9 @@ void SelectMachineDialog::connect_printer_mqtt()
m_status_bar->disable_cancel_button();
m_status_bar->set_status_text(_L("Connecting to the printer. Unable to cancel during the connection process."));
#if !BBL_RELEASE_TO_PUBLIC
obj_->connect(false, wxGetApp().app_config->get("enable_ssl_for_mqtt") == "true" ? true : false);
obj_->connect(wxGetApp().app_config->get("enable_ssl_for_mqtt") == "true" ? true : false);
#else
obj_->connect(false, obj_->local_use_ssl_for_mqtt);
obj_->connect(obj_->local_use_ssl_for_mqtt);
#endif
}
else {