UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
PrinterDiscovery.printer_discovery.NetworkDiscover类 参考

静态 Public 成员函数

List[str] get_printer_list ()
 获取所有可用打印机的列表。
 
List[str] get_printer_list_with_brand (PrinterBrand brand)
 获取指定品牌的打印机列表。
 
List[str] get_printer_list_with_brand (PrinterBrand brand, int timeout_ms)
 异步获取指定品牌的打印机列表。
 

成员函数说明

◆ get_printer_list()

List[str] PrinterDiscovery.printer_discovery.NetworkDiscover.get_printer_list ( )
static

获取所有可用打印机的列表。

返回
返回发现的打印机 IP 地址列表(TSC 和 PTX)。

◆ get_printer_list_with_brand() [1/2]

List[str] PrinterDiscovery.printer_discovery.NetworkDiscover.get_printer_list_with_brand ( PrinterBrand brand)
static

获取指定品牌的打印机列表。

参数
brand要扫描的打印机品牌(TSC / PTX / ALL)。
返回
返回指定品牌的打印机 IP 地址列表。

◆ get_printer_list_with_brand() [2/2]

List[str] PrinterDiscovery.printer_discovery.NetworkDiscover.get_printer_list_with_brand ( PrinterBrand brand,
int timeout_ms )
static

异步获取指定品牌的打印机列表。

参数
brand要扫描的打印机品牌(TSC / PTX / ALL)。
timeout_ms发现过程的超时时间(毫秒)。
返回
返回发现的打印机 IP 地址列表。

该类的文档由以下文件生成: