esp-hal-mdns 0.1.5
“Simple mdns lookup stack for esp-hal”
AArch64 (ARM64) architecture stringBacktick shell command-substitution syntax
SHA-2561050471a978efb28602d6f3272398083195c2fc0a4105a8c9d50a53ad256a92d
MaleculeH(Db)Md
Evidence
1#![no_std]
2
3use dns_protocol::{Flags, LabelSegment, Message, Question, ResourceRecord, ResourceType};
4
5const MDNS_BUF_SIZE: usize = 4096;
⋯4 lines
75:25… is_ans = true;
76
77 for seg in self.query_str.split(".") {
78 if let S …
97:36… a = add.data();
98 let mut offset = 0;
99 loop {
100 if offset >= data.len() {
101 break;
102 …
1# esp-hal-mdns
2Simple library for mdns request's for esp-hal.
3
4## Example
5This exampleis using embassy-net, but you can use any non-async network stack.
6If you want to see full example, check `./examples` dir.
7
⋯12 lines
20_ = stack.join_multicast_group(ip_addr);
21
22// create mdns query struct with given label
23let mut mdns = MdnsQuery::new("_stackmat._tcp.local", 2500, || embassy_time::Instant::now().as_millis());
24
⋯15 lines
40 // response is (ip, port, Option<Txt-Value>)
41 if resp.2.is_some() {
42 // if txt value is found, break from the loop
43 break;
44 }
⋯4 lines
No evidence locations were recorded for this file. Raw result