From: Thijs S. <th...@th...> - 2013-10-15 07:06:01
|
> -----Original Message----- > From: Allen Chen [mailto:bh...@gm...] > Sent: dinsdag 15 oktober 2013 8:19 > To: pupnp development discussion > Subject: [pupnp-devel] how to get integration of service state variables > > Hi, > > In libupnp, device will immediately send the integration and then follow > by changed values of service state variables after control point makes > subscription. Because some of the variables do not change normally, for > example swRev, I want to get the integration of service state variables > every 30 minutes. It can be done by calling UpnpUnSubscribe and > UpnpSubscribe once again. I think this method will consume much of > system resources (terminate a thread and then recreate a new thread). > Is there any better implementation to do that? > Thank you in advance. > > Allen > I'm not sure what you mean with "send the integration"? A device announces itself by sending a broadcast when it goes online, or when controlpoint requests it. Once a controlpoint subscribes to a service, the service will send the StateVariable values to the CP. Now swRev is not a state variable, I didn't look at the code, but I suppose it is the software revision, which is then probably used in some announcement. So this is more on the UPnP protocol level (announcements, soap requests, etc), than it is on the UPnP functional level (statevariables updates, and invoking actions) Not an answer, but maybe it helps to clarify the request? Thijs |