Skip to content
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

setTyped #12

Closed
MichelVos opened this issue Jan 20, 2019 · 1 comment
Closed

setTyped #12

MichelVos opened this issue Jan 20, 2019 · 1 comment

Comments

@MichelVos
Copy link

I think I found a little issue with setTyped in AbstractBluetoothObject
/**
* Helper to set a value on a DBus property.
*
* @param _field DBus property key
* @param _value value to set
*/
protected void setTyped(String _field, Object _value) {
try {
Properties remoteObject = dbusConnection.getRemoteObject("org.bluez", dbusPath, Properties.class);
// remoteObject.Set(Adapter1.class.getName(), _field, _value);
remoteObject.Set(getInterfaceClass().getName(), _field, _value);
} catch (DBusException _ex) {
logger.trace("Error while setting data for DBUS (Field: {}, Value: {}).", _field, _value, _ex);
}
}

I think the remotObject.Set should use the getInterfaceClass().getName()

Hope this helps
Cheers
Michel Vos

hypfvieh added a commit that referenced this issue Jan 21, 2019
@hypfvieh
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants