diff --git a/src/kernel/mdns.rs b/src/kernel/mdns.rs
index 31e9cf7..6c2b7c9 100644
--- a/src/kernel/mdns.rs
+++ b/src/kernel/mdns.rs
@@ -1,14 +1,39 @@
-use std::time::Duration;
+use std::{net::IpAddr, time::Duration};
+use anyhow::{anyhow, Result};
use esp_idf_svc::mdns::{EspMdns, Interface, Protocol, QueryResult};
+use esp_idf_sys::ESP_ERR_NOT_FOUND;
#[derive(Debug, Clone)]
pub struct Service {
pub hostname: String,
+ pub addr: IpAddr,
pub port: u16,
}
-pub fn query_mdns(mdns: &EspMdns, service: &str, proto: &str) -> anyhow::Result