VintageHeart.Pulse (vintage_heart v0.1.2)

VintageHeart.

  • Without an internet connection for about 14 minutes with a 30 second check interval) reboots
  • After about 4 mins with only a 'lan' connection (no internet) kicks VintageNet by killing VintageNet.RouteManager

All check counts are reset to zero on every heartbeat if the local ip address is 192.168.0.1, ie we are running the hotspot for setting up the internet connection.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

All the status

Callback implementation for GenServer.init/1.

When was the last time the newtwork kicked?

Link to this section Types

@type t() :: %VintageHeart.Pulse{
  highest_offline: pos_integer(),
  last_kick: nil | DateTime.t(),
  offline_count: pos_integer(),
  offline_this_period_count: pos_integer(),
  status: :ok | :down
}

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec full_status() :: t()

All the status

Callback implementation for GenServer.init/1.

@spec last_kick() :: nil | DateTime.t()

When was the last time the newtwork kicked?

Link to this function

start_link(opts)