![]() |
(Un)Subscribe in C API? - Printable Version +- OpenHome Forum (http://forum.openhome.org) +-- Forum: OpenHome (/forumdisplay.php?fid=1) +--- Forum: Net (/forumdisplay.php?fid=5) +--- Thread: (Un)Subscribe in C API? (/showthread.php?tid=1028) |
(Un)Subscribe in C API? - dough - 10-07-2012 04:46 AM I am trying to subscribe to a UPnP Event when an evented property changes. Following "Eventing Specific Properties" in the ohNet_ControlPointStack guide, I have:
The call back is not being triggered, although I can see the event broadcast by my Upnp device by using Device Spy. The guide suggests that I should be calling Subscribe for the proxy, but I cannot find that API call anywhere in the C API guide. Am I missing the Subscribe step or is it not necessary when using the C API? ...Or perhaps the call back is not occurring for the same reason I cannot get a response from invoking a Upnp action? Can I generate a trace for property eventing? Doug RE: (Un)Subscribe in C API? - simonc - 10-07-2012 07:53 AM (10-07-2012 04:46 AM)dough Wrote: The guide suggests that I should be calling Subscribe for the proxy, but I cannot find that API call anywhere in the C API guide. Am I missing the Subscribe step or is it not necessary when using the C API? You should call CpProxySubscribe (in OpenHome/Net/C/CpProxy.h) after the other setup. |