@Override
        public void onScanFailed(final int errorCode) {
            mScannerStateLiveData.scanningStopped();
        }
MutableLiveData containing the scanner state to notify MainActivity.
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/ScannerRepository.java