ENH:Support for binding farm mode printers
jira:[for farm mode] Change-Id: Icb2eb3f8435bcc1cabcb343ba040ce426eb50581
This commit is contained in:
parent
ea7f000df9
commit
f6a230869b
|
@ -5240,6 +5240,12 @@ void DeviceManager::on_machine_alive(std::string json_str)
|
|||
std::string printer_signal = j["dev_signal"].get<std::string>();
|
||||
std::string connect_type = j["connect_type"].get<std::string>();
|
||||
std::string bind_state = j["bind_state"].get<std::string>();
|
||||
|
||||
if (connect_type == "farm") {
|
||||
connect_type ="lan";
|
||||
bind_state = "free";
|
||||
}
|
||||
|
||||
std::string sec_link = "";
|
||||
std::string ssdp_version = "";
|
||||
if (j.contains("sec_link")) {
|
||||
|
|
Loading…
Reference in New Issue