In relation to calling OPC-UA method calls on RFID readers supporting OPC-UA AutoID companion specifications (https://opcfoundation.org/markets-collaboration/aim/) I am hitting some challenges.
Specifically it is when calling the method “SCAN”
(https://opcfoundation.org/developer-tools/specifications-unified-architecture/opc-unified-architecture-for-autoid/)
Here i am trying to pass this structure - https://reference.opcfoundation.org/v104/AutoID/DataTypes/ScanSettings/
In the “inputs” parameter of system.opua.callMethod.
When sending the list i am getting following error message - which makes sense:
INFO | jvm 1 | 2020/01/09 15:17:32 | (2158690304L, u’Bad_InvalidArgument’, u’One or more arguments are invalid.’)
INFO | jvm 1 | 2020/01/09 15:17:32 | [(2155085824L, u’Bad_TypeMismatch’, u"The value supplied for the attribute is not of the same type as the attribute’s value.")]
I would like help on creating the “struct” that is required to send as an input parameter using system.opua.callMethod
My current code looks like this:
ScanSettings = [2000,2,0]
result = system.opcua.callMethod(
"S000001",
"ns=4;i=5002",
"ns=4;i=7010",
[ScanSettings]
)