Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Unsubscribe Multiple Items in Web Page - by: jmolina

$
0
0
Hi, I'm using Quick OPC 2017.1 in a ASP.NET MVC Application with c#.

The reads are made it by a subscription group to an OPC Server Matrikon OPC Simulation, this is the code. When the subscription is completed the number of clients connected to the OPC server is increased by 1.



Everything works fine but my problem happens when the user close the web page, then I execute the command UnsubscribeAllItems() for close the subscription.



The problem is that the clients connections (from this subscription) are not stopped (see attached picture), I would expect that the number of clients connected to the OPC server should be decreased by 1.
Is there any other way to stop the subscription or I'am doing something bad?

Thanks and regards

Viewing all articles
Browse latest Browse all 1794

Trending Articles