I am trying to announce an AirPrint printer with this library in my local network, so I can print from it on iOS. I managed to do it with dns-sd (macOS) using
dns-sd -R PRINTER0 _ipps._tcp.,_universal . 631 \
txtvers=1 \
qtotal=1 \
rp="printers/PRINTER0" \
ty="Generic model" \
note="building 1" \
product="(generic)" \
pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf \
TLS=1.2 \
Copies=T \
printer-state=3 \
printer-type=0x8094C6 \
URF="none"
as well as avahi daemon (Linux) using same TXT records, but I fail with this library.
info = ServiceInfo(
'_universal._sub._ipps._tcp.local.',
'PRINTER0._ipps._tcp.local.',
#server = 'mymac.local',
port = 631,
properties = properties # TXT records same as in dns-sd
)
zeroconf = Zeroconf(ip_version=IPVersion.V4Only)
zeroconf.register_service(info)
try:
while True:
sleep(0.1)
except KeyboardInterrupt:
pass
finally:
zeroconf.unregister_service(info)
zeroconf.close()
The issue seems to be related to subtypes handling. With _universal._sub prefix I cannot even detect the service using avahi-browse (Linux) or Discovery.app (macOS). The issue is similar to #275, #304 and #109.
I am trying to announce an AirPrint printer with this library in my local network, so I can print from it on iOS. I managed to do it with
dns-sd(macOS) usingas well as
avahidaemon (Linux) using same TXT records, but I fail with this library.The issue seems to be related to subtypes handling. With
_universal._subprefix I cannot even detect the service using avahi-browse (Linux) or Discovery.app (macOS). The issue is similar to #275, #304 and #109.