esp-hal-mdns
Simple library for mdns request's for esp-hal.
Example
This exampleis using embassy-net, but you can use non-async esp-wifi.
If you want to see full example, check ./examples dir.
// create udp socket
let mut sock = new;
// these values can be consts i guess
let ip_addr = v4;
let ip_endpoint: IpEndpoint = new;
// bind on port 5353
_ = sock.bind;
// join multicast group
_ = stack.join_multicast_group.await;
// create mdns query struct with given label
let mut mdns = new;
let mut data_buf = ;
loop
// leave multicast group
_ = stack.leave_multicast_group.await;