Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects

roUPnPService

2min
this object is returned by the getservces() and getservice() methods on the roupnpdevice object ifupnpservice invoke(actionname as string, params as object) as integer invokes an action asynchronously on the upnp service this method returns a transaction id that can be used to match it against the associated roupnpactionresult instance subscribe() as integer subscribes to events on the upnp service asynchronously renewsubscription() as integer resubscribes to events on the upnp service asynchronously this method should only be called after calling subscribe() getsid() as string returns the subscription id this method should only be called after calling subscribe() gettimeout() as integer returns the service timeout period this method should only be called after calling subscribe() ifmessageport setport(port as romessageport) specifies the port that will receive events generated by the roupnpservice instance ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set