Commit Graph

6 Commits

Author SHA1 Message Date
Darell Tan
7f2c23d426 Upgraded paho.mqtt.golang to v1.5.1 2026-01-12 21:44:12 +08:00
Darell Tan
f6737b8857 Upgraded hap to v0.0.35 2024-11-24 16:13:53 +08:00
Darell Tan
fe5d0ce14c Disable TCP keepalives explicitly
It looks like Go has adopted 15s TCP keepalives as a default for _all_
TCP connections, which is quite dumb if you ask me.
https://github.com/golang/go/issues/48622

For the HAP server's side, it degrades iOS battery life significantly by
waking the device every 15s to respond to these packets. In the case as
a normal MQTT client, it increases traffic on top of the 60s keepalive
we've already set at the application layer. In both cases, the solution
is to just explicitly disable TCP keepalives.

Upgrade hap to the latest version that contains the fix brutella/hap#36.
2023-08-09 01:41:00 +08:00
Darell Tan
48eabc2342 Mark old last_seen devices as "not responding"
Devices that have not received an update since a fixed timeout (24 hrs
for now), based on its last_seen time, will be marked as "not
responding" in the Home app. With this I can identify which devices are
unreachable or dead.

Also needed to upgrade hap with the fix for brutella/hap#30, or the
entire bridge will stop working.
2023-05-22 22:38:20 +08:00
Darell Tan
5c47a410cf Added test for FsStore values clobbering
It was fixed upstream during a rewrite on functions in FsStore.
See my comments on brutella/hap#28.
2023-04-27 02:14:53 +08:00
Darell Tan
84398fc53a "Initial" working version, after cleanup. 2023-04-26 23:20:07 +08:00