Title: Subtype doesn't seem to work · Issue #1287 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Subtype doesn't seem to work · Issue #1287 · python-zeroconf/python-zeroconf
X Title: Subtype doesn't seem to work · Issue #1287 · python-zeroconf/python-zeroconf
Description: 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="p...
Open Graph Description: 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.,_univer...
X Description: 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.,_univer...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1287
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Subtype doesn't seem to work","articleBody":"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\r\n```\r\ndns-sd -R PRINTER0 _ipps._tcp.,_universal . 631 \\\r\ntxtvers=1 \\\r\nqtotal=1 \\\r\nrp=\"printers/PRINTER0\" \\\r\nty=\"Generic model\" \\\r\nnote=\"building 1\" \\\r\nproduct=\"(generic)\" \\\r\npdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf \\\r\nTLS=1.2 \\\r\nCopies=T \\\r\nprinter-state=3 \\\r\nprinter-type=0x8094C6 \\\r\nURF=\"none\"\r\n```\r\nas well as `avahi` daemon (Linux) using same TXT records, but I fail with this library.\r\n\r\n```\r\ninfo = ServiceInfo(\r\n '_universal._sub._ipps._tcp.local.',\r\n 'PRINTER0._ipps._tcp.local.',\r\n #server = 'mymac.local',\r\n port = 631,\r\n properties = properties # TXT records same as in dns-sd\r\n)\r\nzeroconf = Zeroconf(ip_version=IPVersion.V4Only)\r\nzeroconf.register_service(info)\r\ntry:\r\n while True:\r\n sleep(0.1)\r\nexcept KeyboardInterrupt:\r\n pass\r\nfinally:\r\n zeroconf.unregister_service(info)\r\n zeroconf.close()\r\n```\r\nThe 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.\r\n\r\n","author":{"url":"https://github.com/mmuszkow","@type":"Person","name":"mmuszkow"},"datePublished":"2023-10-25T23:45:05Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1287"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5124f4e9-f489-a260-a793-0a948aeb1fbc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E66:3CCE8:54E1:6FB7:6B007D35 |
| html-safe-nonce | cd8e7f75438587667dc643eceb98d82dcc9cdbcbf9448a2791ca04857fc238b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTY2OjNDQ0U4OjU0RTE6NkZCNzo2QjAwN0QzNSIsInZpc2l0b3JfaWQiOiIxMjMzMTEzOTI3NDEyMzgzMDI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b30c45c0d5e1214e24b5d4ad46506aa8c7ca25741fce8c8a0b88e8907f42a4ea |
| hovercard-subject-tag | issue:1962465806 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1287/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c61c5fd67607f11e80b551ffd40a7b07455f9cff65d19f7fbb0907639b54232/python-zeroconf/python-zeroconf/issues/1287 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c61c5fd67607f11e80b551ffd40a7b07455f9cff65d19f7fbb0907639b54232/python-zeroconf/python-zeroconf/issues/1287 |
| og:image:alt | 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.,_univer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mmuszkow |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width