private boolean isAddressInUse(@Nullable final Integer address) {
        if (address == null)
            return false;

        for (ProvisionedMeshNode node : nodes) {
            if (address == node.getUnicastAddress()) {
                return true;
            }
        }
        return false;
    }
Assigns a unicast address, to be used by a node

@param unicastAddress Unicast address
@return true if success, false if the address is in use by another device
mesh/src/main/java/no/nordicsemi/android/mesh/BaseMeshNetwork.java