Sfoglia il codice sorgente

Subscriptions: Encode to compare also if only StatusCodes are checked

The default "previous" statuscode is good. In CTT "Monitor Value
Changes/34.js", no initial notification was created because no change
was detected.
Julius Pfrommer 5 anni fa
parent
commit
cdd1f21506
1 ha cambiato i file con 0 aggiunte e 7 eliminazioni
  1. 0 7
      src/server/ua_subscription_datachange.c

+ 0 - 7
src/server/ua_subscription_datachange.c

@@ -189,13 +189,6 @@ updateNeededForStatusCode(const UA_DataValue *value, const UA_MonitoredItem *mon
 static UA_Boolean
 detectValueChangeWithFilter(UA_Server *server, UA_Subscription *sub, UA_MonitoredItem *mon,
                             UA_DataValue *value, UA_ByteString *encoding) {
-
-#ifdef UA_ENABLE_DA
-  	if(mon->filter.dataChangeFilter.trigger == UA_DATACHANGETRIGGER_STATUS) {
-      	if(!updateNeededForStatusCode(value, mon))
-          	return false;
-  	}
-#endif
     if(UA_DataType_isNumeric(value->value.type) &&
        (mon->filter.dataChangeFilter.trigger == UA_DATACHANGETRIGGER_STATUSVALUE ||
         mon->filter.dataChangeFilter.trigger == UA_DATACHANGETRIGGER_STATUSVALUETIMESTAMP)) {