UniPRT SDK v2.0-so (Python)
 
Loading...
Searching...
No Matches
Discovery.Discovery Class Reference

Public Member Functions

 GetPrinterList (self, brand=BRAND_IDX.ALL.value, responseTimeoutMs=5000)
 Search a printer by network.
 
 GetPrinterList_IPv6 (self, str prefix, str interface_name, int responseTimeoutMs=3000)
 Search a printer by IPv6 network.
 

Public Attributes

 ping_ipv6_address
 

Member Function Documentation

◆ GetPrinterList()

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

Search a printer by network.


Parameters
[in]brandset a brand of printer
[in]responseTimeoutMsset the timeout for printer response
Returns
IP list string
Sample
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 )

Search a printer by IPv6 network.


Parameters
[in]prefixIPv6 prefix, uses the ping method to search for all possible combinations of the last 16 bits of the IP address
[in]interface_nameplatform interface ID
[in]responseTimeoutMsset the timeout for printer response
Returns
IPv6 list string
Sample
link_local_list = GetPrinterList_IPv6("fe80::208:96ff:fe40:", "eth0", 1000)
global_list = GetPrinterList_IPv6("2001:b030:2219:c40:208:96ff:fe40:", "", 1000)

Member Data Documentation

◆ ping_ipv6_address

Discovery.Discovery.ping_ipv6_address