@Override
    public boolean onCreateOptionsMenu(final Menu menu) {
        if (mIsConnected) {
            getMenuInflater().inflate(R.menu.disconnect, menu);
        } else {
            getMenuInflater().inflate(R.menu.connect, menu);
        }
        return true;
    }
Update the mesh message

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