UniPRT 軟體開發套件 v2.0-pyd (Python)
 
載入中...
搜尋中...
無符合項目
Discovery.Discovery 類別 參考文件

公開方法(Public Methods)

 GetPrinterList (self, brand=BRAND_IDX.ALL.value, responseTimeoutMs=5000)
 透過網路尋找印表機。
 
 GetPrinterList_IPv6 (self, str prefix, str interface_name, int responseTimeoutMs=3000)
 透過 IPv6 網路尋找印表機。
 

公開屬性

 ping_ipv6_address
 

函式成員說明文件

◆ GetPrinterList()

Discovery.Discovery.GetPrinterList ( self,
brand = BRAND_IDX.ALL.value,
responseTimeoutMs = 5000 )

透過網路尋找印表機。

參數
[in]brand: 設定印表機品牌
[in]responseTimeoutMs: 回應的暫停時間,單位: ms
傳回值
IP 鏈結字串
程式碼
printer_list = GetPrinterList(BRAND_IDX.ALL.value, 3000)
printer_list = GetPrinterList(BRAND_IDX.TSC.value, 3000)
printer_list = GetPrinterList(BRAND_IDX.PTX.value, 3000)

◆ GetPrinterList_IPv6()

Discovery.Discovery.GetPrinterList_IPv6 ( self,
str prefix,
str interface_name,
int responseTimeoutMs = 3000 )

透過 IPv6 網路尋找印表機。

參數
[in]prefix: IPv6 前綴,會以 ping IP 作法搜尋最後 16 bits 的 IP 組合
[in]interface_name: 平台介面 ID
[in]responseTimeoutMs: 回應的暫停時間,單位: ms
傳回值
IPv6 鏈結字串
程式碼
link_local_list = GetPrinterList_IPv6("fe80::208:96ff:fe40:", "eth0", 1000)
global_list = GetPrinterList_IPv6("2001:b030:2219:c40:208:96ff:fe40:", "", 1000)

資料成員說明文件

◆ ping_ipv6_address

Discovery.Discovery.ping_ipv6_address