-
Notifications
You must be signed in to change notification settings - Fork 93
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
How to use dbus.Byte in python like in dbus-native #62
Comments
just use 'ay' signature and array of numbers as value. I'll try to see what messages exactly python script sends |
Hi, a = 'TP-LINK_10DC';
var buffer = Buffer(a);
con = [
['802-11-wireless', [
['mode', ['s','infrastructure']],
['security', ['s','802-11-wireless-security']],
['ssid', ['ay', [buffer]]]
]],
['802-11-wireless-security', [
['auth-alg', ['s','open']],
['key-mgmt', ['s','wpa-psk']],
['psk', ['s','0123456789']]
]],
['connection',[
['id', ['s','TP-LINK_10DC']],
['type', ['s','802-11-wireless']],
['uuid', ['s',uuid.v1().toString()]]
]],
['ipv4', [
['method', ['s','auto']]
]],
['ipv6', [
['method', ['s','auto']]
]]
] I use it to replace dbus.ByteArray in python. |
@zhangtianye buffer should work same way as array of numbers, just make sure that |
closing this as the main issue is known ( complex types, especially variants are very verbose and there should be easier way to read/write them + documentation ) |
Hi,
Can you give me some way to use dbus-native as I can use "dbus.Byte" and " dbus.ByteArray " in python?
Some data I can use "dbus.ByteArray" in python to communicate with application like NetworkManager,
but failed in dbus-native.
Here is a link to dbus.ByteArray:
http://dbus.freedesktop.org/doc/dbus-python/api/dbus.ByteArray-class.html
And here is my python code:
Is there any way I can use like dbus.Byte or dbus.ByteArray in dbus-native like in python-dbus ?
Thanks.
The text was updated successfully, but these errors were encountered: