Closed duydatpham closed 7 years ago
That's easy.
Just add subscribeObserver to UPPEventSubscriptionManager as following.
[[UPPEventSubscriptionManager sharedInstance] subscribeObserver:device toService:device.avTransportService completion:nil];
You can received event through UPPEventSubscriptionDelegate protocol.
- (void)eventReceived:(NSDictionary *)event
I think maybe you want to subscribe 'LastChange' event and it is parsed UPPLastChangeParser. What you have to do is getting keys and values from event dictionary. If you want to subscribe other events, you should write those parsers. See OnoXML.
GOOD LUCK.
hi, many thanks for replying me :) But i check API, this function dont like you show me. (pls check image)
If i'm trying to call like you said, i see that 'GCDWebServer stopped' on the console (pls check image)
You must subscribe an object conforming to the UPPEventSubscriptionDelegate
, to an existing service not a new one.
Hi friend, pls help me, I dont know how to subscription event . if u can, pls show me a example
Thanks