-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometime introspection doesnt work for remote object #25
Comments
In order to call remote methods, an interface description is required. As to the API documentation, there isn't a well-documented API separate Tom On Sat, Feb 21, 2015 at 5:37 PM, funky12 [email protected] wrote:
|
Thanks Tom, Yes now I am always using explicit definition. Will go through the code and if I comeup with a documentation, would try to share on the blog and give u the link |
Hi,
Is it mandatory to specify "Method" in interface explicitly?
=== Not working===
I tried following to call a remote method I wrote "ActivateConnection", passed the argument using following piece of code:
Note I have not specified interface here
dialer_iface = DBusInterface(DIALUP_INTFACE)
self.dobj= yield self.mdmModel.bus.getRemoteObject(DIALUP_SERVICE, DIALUP_OBJECT,dialer_iface)
self.path = yield self.dobj.callRemote('ActivateConnection',self.mdmModel.device_opath,
timeout=80)
--> This gives an error that Remote Object doesnt have ActivateConnection in any of interfaces --->
=== working===
Then I tried explicitly specifying the method in interface
dialer_iface = DBusInterface(DIALUP_INTFACE,
Method('ActivateConnection', 'o',returns=''))
self.dobj= yield self.mdmModel.bus.getRemoteObject(DIALUP_SERVICE, DIALUP_OBJECT,dialer_iface)
self.path = yield self.dobj.callRemote('ActivateConnection',self.mdmModel.device_opath,
timeout=80)
It works fine.. here, am I missing something?
The text was updated successfully, but these errors were encountered: