Closed simonhac closed 7 years ago
fyi, i ran through the following (manual) tests:
homebridge
without cgate
running — we force exit.homebridge
with cgate
running, ctrl-c and restartcgate
(cgate.sh — we recover.homebridge
with cgate
running, turn on switch with activeDuration
but disable network connection before timer expiry — the connection times out, we re-establish shortly after network connection is restored.homebridge
with cgate
running, turn on light and disable network connection — connection doesn't time out within 5 minutes i gave it. i'll leave the network connection disabled overnight to see if that'll be picked up as a timeout.given the first 3 tests worked, i'm pretty sure we're doing as best we can -- but i'll see what happens with more extensive testing on test 4.
@anthonywebb i'm also working on #2. should be a quick one, but it'll be a separate PR.
addresses issue #14.
...and i got to work out what ES6 generator functions are all about.