@Override
    public boolean onOptionsItemSelected(@NonNull final MenuItem item) {
        final int id = item.getItemId();
        if (id == android.R.id.home) {
            onBackPressed();
            return true;
        } else if (id == R.id.action_connect) {
            mViewModel.navigateToScannerActivity(this, false);
            return true;
        } else if (id == R.id.action_disconnect) {
            mViewModel.disconnect();
            return true;
        }
        return false;
    }
Update the mesh message

@param meshMessage {@link MeshMessage} mesh message status
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/BaseActivity.java