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
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
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.
The text was updated successfully, but these errors were encountered:
I believe the issue is that the subtype is supposed to be a PTR record pointing to the SRV record of the parent type.
The PTR record for a ServiceInfo is generated from it's type and name, but the constructor of ServiceInfo checks that there are no two entries with the same name so I think to make this work one would have to add a new subtypes= parameter to the service info constructor.
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
avahi
daemon (Linux) using same TXT records, but I fail with this library.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.The text was updated successfully, but these errors were encountered: