Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongoose-os-libs/dns-sd
DNS-SD/Bonjour protocol support library
https://github.com/mongoose-os-libs/dns-sd
Last synced: 3 months ago
JSON representation
DNS-SD/Bonjour protocol support library
- Host: GitHub
- URL: https://github.com/mongoose-os-libs/dns-sd
- Owner: mongoose-os-libs
- License: other
- Created: 2020-07-07T23:22:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-28T18:55:20.000Z (about 2 years ago)
- Last Synced: 2024-07-31T21:52:00.188Z (6 months ago)
- Language: C
- Size: 65.4 KB
- Stars: 3
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - dns-sd
README
# DNS-SD/Bonjour protocol support library
By default, advertises the HTTP server (if enabled).
Additional instances can be added by the user's application, example (for Apple HAP):
```c
const struct mgos_dns_sd_txt_entry gizmo_txt[] = {
{.key = "c#", .value = MG_MK_STR("1")},
{.key = "ff", .value = MG_MK_STR("0")},
{.key = "pv", .value = MG_MK_STR("1.0")},
{.key = "id", .value = MG_MK_STR("11:22:33:44:55:66")},
{.key = "md", .value = MG_MK_STR("Fancy Gizmo 9000")},
{.key = "s#", .value = MG_MK_STR("1")},
{.key = "sf", .value = MG_MK_STR("1")},
{.key = "ci", .value = MG_MK_STR("8")}, // Switch
{.key = NULL},
};
mgos_dns_sd_add_service_instance("gizmo9000", "_hap._tcp", 8080, gizmo_txt);
```