Hi Florian,
thanks for your answer. I've had already played with UA_Client_readDataTypeAttribute but refused to use it since I didn't know what to do with the returned node ID :)
After a second look one has to do this in order to get the underlying type:
UA_NodeId xx;
UA_Client_readDataTypeAttribute(client, reference.nodeId.nodeId, &xx); // test for success...
for (int i = 0; i < UA_TYPES_COUNT; ++i) {
if (UA_NodeId_equal(&UA_TYPES[i].typeId, &xx)) {
if (i == UA_TYPES_BOOLEAN)
// Yeah, it's a boolean.
break;
}
}
Of course this should be cached and and so on.
Right, or do I miss the obvious again?
Thanks for your help!
Sebastian