This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.milo.opcua.sdk.client.OpcUaClient; | |
import org.eclipse.milo.opcua.stack.core.NodeIds; | |
import org.eclipse.milo.opcua.stack.core.UaException; | |
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseDirection; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseResultMask; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass; | |
import org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription; | |
import org.eclipse.milo.opcua.stack.core.types.structured.BrowseResult; | |
import org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 the Eclipse Milo Authors | |
* | |
* This program and the accompanying materials are made | |
* available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.milo.opcua.sdk.client.OpcUaClient; | |
import org.eclipse.milo.opcua.stack.core.NodeIds; | |
import org.eclipse.milo.opcua.stack.core.UaException; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseDirection; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseResultMask; | |
import org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass; | |
import org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription; | |
import org.eclipse.milo.opcua.stack.core.types.structured.BrowseResult; | |
import static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 the Eclipse Milo Authors | |
* | |
* This program and the accompanying materials are made | |
* available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.ExecutionException; | |
import org.eclipse.milo.opcua.sdk.client.OpcUaClient; | |
import org.eclipse.milo.opcua.sdk.client.api.config.OpcUaClientConfigBuilder; | |
import org.eclipse.milo.opcua.sdk.client.subscriptions.ManagedDataItem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 the Eclipse Milo Authors | |
* | |
* This program and the accompanying materials are made | |
* available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.digitalpetri.opcua.models.bacnet; | |
import java.io.InputStream; | |
import javax.xml.bind.JAXBException; | |
import com.digitalpetri.opcua.models.ModeledAddressSpace; | |
import com.digitalpetri.opcua.nodeset.UaNodeSet; | |
import org.eclipse.milo.opcua.sdk.server.OpcUaServer; | |
import org.eclipse.milo.opcua.sdk.server.api.Namespace; | |
import org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.digitalpetri.opcua.models; | |
import java.util.List; | |
import java.util.Objects; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import com.digitalpetri.opcua.nodeset.UaNodeSet; | |
import com.digitalpetri.opcua.nodeset.attributes.DataTypeNodeAttributes; | |
import com.digitalpetri.opcua.nodeset.attributes.MethodNodeAttributes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StringBuilder sb = new StringBuilder(); | |
sb.append("<ByteString xmlns=\"http://opcfoundation.org/UA/2008/02/Types.xsd\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">PHhzOnNjaGVtYQ0KICB4bWxuczp4cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiDQogIHhtbG5zOnVhPSJodHRwOi8vb3BjZm91bmRhdGlvbi5vcmcvVUEvMjAwOC8wMi9UeXBlcy54c2QiDQogIHhtbG5zOnRucz0iaHR0cDovL29wY2ZvdW5kYXRpb24ub3JnL1VBLzIwMDgvMDIvVHlwZXMueHNkIg0KICB0YXJnZXROYW1lc3BhY2U9Imh0dHA6Ly9vcGNmb3VuZGF0aW9uLm9yZy9VQS8yMDA4LzAyL1R5cGVzLnhzZCINCiAgZWxlbWVudEZvcm1EZWZhdWx0PSJxdWFsaWZpZWQiDQo+DQogIDx4czplbGVtZW50IG5hbWU9IkJvb2xlYW4iIG5pbGxhYmxlPSJ0cnVlIiB0eXBlPSJ4czpib29sZWFuIiAvPg0KDQogIDx4czpjb21wbGV4VHlwZSBuYW1lPSJMaXN0T2ZCb29sZWFuIj4NCiAgICA8eHM6c2VxdWVuY2U+DQogICAgICA8eHM6ZWxlbWVudCBuYW1lPSJCb29sZWFuIiB0eXBlPSJ4czpib29sZWFuIiBtaW5PY2N1cnM9IjAiIG1heE9jY3Vycz0idW5ib3VuZGVkIiAvPg0KICAgIDwveHM6c2VxdWVuY2U+DQogIDwveHM6Y29tcGxleFR5cGU+DQogIDx4czplbGVtZW50IG5hbWU9Ikxpc3RPZkJvb2xlYW4iIHR5cGU9InRuczpMaXN0T2ZCb29sZW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2019 the Eclipse Milo Authors | |
* | |
* This program and the accompanying materials are made | |
* available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
*/ |
NewerOlder