You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if state = pause then resume or resume all.
Would be grateful if get example. I tried IPP package but failed to import package and use the func get printers.
Thanks
The text was updated successfully, but these errors were encountered:
`func main() {
// create a new ipp client
client := ipp.NewIPPClient("server", 631, "user", "password", true)
err := client.TestConnection()
if err != nil {
fmt.Printf("%v", err)
} else {
Get all printers on above server ????
looping through all the printers
var res []string
printer, _ := client.GetPrinterAttributes("1st printer in loop", res)
for _, atr := range printer {
for _, nameAtr := range atr {
if nameAtr.Name == "printer-state-reasons" {
if xx.Value == "paused" {
client.ResumePrinter(printer)
}
}
}
}
}
}`
// currently I am using chromedp to get all the printers.
Hello,
I am trying to
Would be grateful if get example. I tried IPP package but failed to import package and use the func get printers.
Thanks
The text was updated successfully, but these errors were encountered: