notifyOffline method

void notifyOffline()

Externally notify that hardware is disconnected (e.g. Airplane Mode / No SIM / Wi-Fi off).

Implementation

void notifyOffline() {
  _consecutiveFailures = failureThreshold;
  if (_lastStatus) {
    _lastStatus = false;
    _controller.add(false);
  }
}