eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7cd4eea3d8697bfc9623e11a90a060f25e51630b
parent cbff5c90f27adc0ed16b2dfdcf024ef69ba64a5e
Author: Daniel Barlow <dan@telent.net>
Date:   Thu, 25 Dec 2025 17:06:07 +0000

add missing RRs

Diffstat:
Mecu-esp32/src/wifi.rs | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/ecu-esp32/src/wifi.rs b/ecu-esp32/src/wifi.rs @@ -2,6 +2,7 @@ //! //! This gets an ip address via DHCP and advertises it with mdns +use alloc::vec; use alloc::vec::Vec; use alloc::string::String; @@ -134,14 +135,6 @@ impl DnsResource { fn all(my_ip_address : &[u8]) -> Vec<Self> { let static_records = [ - - // ResourceRecord::new( - // "_keihin._services._dns-sd._udp.local", - // ResourceType::Ptr, - // 1, - // 120, - // Label::from("Motorbike._keihin._udp.local").serialize() - // ) Self::new( "eculogical.local", ResourceType::A, @@ -156,6 +149,16 @@ impl DnsResource { } ), Self::new( + "Bike._keihin._udp.local", + ResourceType::Txt, + RData::Raw(vec!(0)) + ), + Self::new( + "_keihin._udp.local", + ResourceType::Ptr, + RData::Raw(alloc_ptr_data(&["Bike", "_keihin", "_udp", "local"])) + ), + Self::new( "_services._dns-sd._udp.local", ResourceType::Ptr, RData::Raw(alloc_ptr_data(&["_keihin", "_udp", "local"]))