Skip to content

Commit

Permalink
opcua: handle nsu in nodeId (fixing #1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Feb 4, 2025
1 parent a40faff commit b28bc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-opcua/src/opcua-protocol-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class OPCUAProtocolClient implements ProtocolClient {
const nodeId = await this._resolveNodeId2(form, fNodeId);
return await this._withSession<DataType>(form, async (session) => {
const dataTypeOrNull = await getBuiltInDataType(session, nodeId);
if (dataTypeOrNull != undefined && dataTypeOrNull !== DataType.Null) {
if (dataTypeOrNull !== undefined && dataTypeOrNull !== DataType.Null) {
return dataTypeOrNull;
}
throw new Error("cannot predict dataType for nodeId " + nodeId.toString());
Expand Down

0 comments on commit b28bc5e

Please sign in to comment.