We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dns-sd -R "Library Color ddd" _ipp._tcp.,_universal . 631 pdl="image/urf" URF=""
My code
#!/usr/bin/env python3 """ Example of announcing a service (in this case, a fake HTTP server) """ import argparse import logging import socket from time import sleep from zeroconf import IPVersion, ServiceInfo, Zeroconf desc = { "pdl": "image/urf", "URF": "", } if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG) parser = argparse.ArgumentParser() parser.add_argument('--debug', action='store_true') version_group = parser.add_mutually_exclusive_group() version_group.add_argument('--v6', action='store_true') version_group.add_argument('--v6-only', action='store_true') args = parser.parse_args() if args.debug: logging.getLogger('zeroconf').setLevel(logging.DEBUG) if args.v6: ip_version = IPVersion.All elif args.v6_only: ip_version = IPVersion.V6Only else: ip_version = IPVersion.V4Only info = ServiceInfo( "_ipp._tcp.local.", "Library Color ddd._ipp._tcp.local.", addresses=[socket.inet_aton("192.168.67.101")], port=631, properties=desc, server="Library Color ddd._ipp._tcp.local.", priority=40, ) zeroconf = Zeroconf(ip_version=ip_version) print("Registration of a service, press Ctrl-C to exit...") zeroconf.register_service(info) try: while True: sleep(0.1) except KeyboardInterrupt: pass finally: print("Unregistering...") zeroconf.unregister_service(info) zeroconf.close()
It's wrong
The text was updated successfully, but these errors were encountered:
Please provide:
These pieces of information are essential to figuring out what's wrong and possibly fixing it (in this case and any other).
Sorry, something went wrong.
I found the reason,python-zeroconf don't support subtype
I believe it does, there are tests verifying it. Maybe there's something specific you have an issue with, it's not clear without more information.
No branches or pull requests
My code
It's wrong
The text was updated successfully, but these errors were encountered: