Manual camera configuration does not scale beyond a few devices. Automated discovery is needed to support deployments with 50+ cameras across heterogeneous protocols (ONVIF, mDNS, HTTP, ARP). Phase 1 introduces 5 network probe services, a stream tester, an orchestrating discovery service with IP+MAC deduplication, 11 REST endpoints, a pre-verification endpoint, 57 tests, and DI registration.
24 lines
709 B
C#
24 lines
709 B
C#
namespace Heimdall.Infrastructure.Services.Discovery;
|
|
|
|
/// <summary>Result of an mDNS / HomeKit probe.</summary>
|
|
public sealed record HomeKitDeviceInfo(
|
|
string Name,
|
|
string DeviceId,
|
|
string Model,
|
|
string Category,
|
|
bool IsPaired,
|
|
int Port);
|
|
|
|
/// <summary>
|
|
/// mDNS / HomeKit Accessory Protocol probe.
|
|
/// Queries _hap._tcp.local and other camera-related mDNS service types.
|
|
/// </summary>
|
|
public interface IMdnsProbeService
|
|
{
|
|
/// <summary>
|
|
/// Probe an IP address for HomeKit / mDNS camera services.
|
|
/// Returns null if no HomeKit device is detected on this IP.
|
|
/// </summary>
|
|
Task<HomeKitDeviceInfo?> ProbeAsync(string ipAddress, CancellationToken ct = default);
|
|
}
|