brutella / hc

hc is a lightweight framework to develop HomeKit accessories in Go.
Apache License 2.0
1.74k stars 189 forks source link

Health check? #179

Closed travishaagen closed 4 years ago

travishaagen commented 4 years ago

I periodically have to restart hc and have had trouble determining why from the logs.

Do you have any ideas of a "heath check" request that could be sent over the network?

brutella commented 4 years ago

If an accessory is not reachable, I always use Discovery app to find the related dns-sd entry of type _hap._tcp for the accessory. This tells me if anything is wrong with hc or the network.

PS: I'm currently working dnssd to fix some small issue. Maybe those are related to your problem.

travishaagen commented 4 years ago

Should I test the unreleased changes on dnssd master or are you still working on them? going to release?

brutella commented 4 years ago

If you want to test the unreleased changes of dnssd you should checkout the branch refactoring of dnssd.

go get github.com/brutella/dnssd
cd $GOPATH/src/github.com/brutella/dnssd
git checkout refactoring

Then in your go.mod use

replace github.com/brutella/dnssd => ./<path-to-dnssd-folder>