50 {
52 auto it = machines.find(dev_id);
53 if (it != machines.end() && it->second.printer_agent_id == agent_id && !it->second.access_code.empty())
54 return it->second.access_code;
55
57 std::string code = config->
get(
"access_code", dev_id);
58 if (code.empty())
59 code = config->
get(
"user_access_code", dev_id);
60 return code;
61 }
62 return "";
63 }
bool get(const std::string §ion, const std::string &key, std::string &value) const
Definition AppConfig.hpp:147
const std::map< std::string, BBLocalMachine > & get_local_machines() const
Definition AppConfig.hpp:283
static constexpr char BBL_PRINTER_AGENT_ID[]
Definition NetworkAgentFactory.hpp:20