public NetworkKey getPrimaryNetworkKey() {
        for (NetworkKey networkKey : netKeys) {
            if (networkKey.getKeyIndex() == 0) {
                return networkKey;
            }
        }
        return null;
    }
Returns a list of {@link NetworkKey} belonging to the mesh network
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java