You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a timed callback that read a temperature value and, if this value is over a threshold, a Condition
is set to active state setting ActiveState->Id filed to true. Before the ActiveState->Id field is set to true,
I set the "Time" of the condition using
But in UAExpert, where the Alarm message, comment and status is showed correctly, I see
2000-01-01T00:00:00.000Z as time value.
The correct time is set instead, in the Enabled, Acked and Confirmed Callback, using the same code as above.
It seems that, after I set the time in the callback, the Time is set again to 0 when the event is generated.
Description
I have a timed callback that read a temperature value and, if this value is over a threshold, a Condition
is set to active state setting ActiveState->Id filed to true. Before the ActiveState->Id field is set to true,
I set the "Time" of the condition using
UA_DateTime ts = UA_DateTime_now();
UA_Server_writeObjectProperty_scalar( server, conditionNodeId, UA_QUALIFIEDNAME(0, "Time"), &ts, &UA_TYPES[UA_TYPES_DATETIME] );
But in UAExpert, where the Alarm message, comment and status is showed correctly, I see
2000-01-01T00:00:00.000Z as time value.
The correct time is set instead, in the Enabled, Acked and Confirmed Callback, using the same code as above.
It seems that, after I set the time in the callback, the Time is set again to 0 when the event is generated.
Background Information / Reproduction Steps
Used CMake options:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: