Unified opcua servers creation with using addons.

monitored Item ID is captured  in lambda. And is later used in subscription.

2014-10-19 15:42 GMT+04:00 oroulet <notifications@github.com>:

> In src/server/address_space_internal.h:
>
> > @@ -93,8 +93,15 @@ namespace OpcUa
> >          virtual std::vector<StatusCode> Write(const std::vector<OpcUa::WriteValue>& values);
> >
> >          //Server side methods
> > -        uint32_t AddDataChangeCallback(const NodeID& node, AttributeID attribute, const IntegerID& clienthandle, std::function<void(IntegerID, DataValue)> callback);
>
> I think we may bet into trouble with that change. If a subcsription is
> asked to create several monitoreditems for for the same node and
> attributed, it has now no way to know which one it is gettings callback
> call for, If then there is a request to delete a monitoreditem the client
> will have to make sure that no other monitoreditems is also using this
> callback ..... it looks like it works now but I do not know why ...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/FreeOpcUa/freeopcua/pull/62/files#r19059683>.
>



-- 
Best regards,
Alexander Rykovanov.