|
@@ -16,22 +16,21 @@
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
-static void handler_TheAnswerChanged(UA_UInt32 monId, UA_DataValue *value, void *context) {
|
|
|
+static void
|
|
|
+handler_TheAnswerChanged(UA_UInt32 monId, UA_DataValue *value, void *context) {
|
|
|
printf("The Answer has changed!\n");
|
|
|
- return;
|
|
|
}
|
|
|
|
|
|
static UA_StatusCode
|
|
|
nodeIter(UA_NodeId childId, UA_Boolean isInverse, UA_NodeId referenceTypeId, void *handle) {
|
|
|
- UA_NodeId *parent = (UA_NodeId *) handle;
|
|
|
-
|
|
|
- if(!isInverse) {
|
|
|
+ if(isInverse)
|
|
|
+ return UA_STATUSCODE_GOOD;
|
|
|
+ UA_NodeId *parent = (UA_NodeId *)handle;
|
|
|
printf("%d, %d --- %d ---> NodeId %d, %d\n",
|
|
|
parent->namespaceIndex, parent->identifier.numeric,
|
|
|
referenceTypeId.identifier.numeric, childId.namespaceIndex,
|
|
|
childId.identifier.numeric);
|
|
|
- }
|
|
|
- return UA_STATUSCODE_GOOD;
|
|
|
+ return UA_STATUSCODE_GOOD;
|
|
|
}
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|