Hello Marcel,
Thanks for the quick response.
>> try wrapping the handle with dbus.Uint32() to get the right type.
I've tried wrapping that now so the line of code now looks like:
print adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09', dbus.Uint32(handle))
But I get a different error this time around:
AttributeError: 'module' object has no attribute 'Uint32'
I'm not too bothered if we're not able to get this XML version working, I just need a method of getting the channel/port from the device, which ever solution is simplest and fastest.
Thanks for your help Marcel,
Rob
_________________________________________________________________
Feel like a local wherever you go with BackOfMyHand.com
http://www.backofmyhand.com
Hi Robert,
> >> try wrapping the handle with dbus.Uint32() to get the right type.
>
> I've tried wrapping that now so the line of code now looks like:
>
> print adapter.GetRemoteServiceRecordAsXML('00:17:B0:A0:E7:09',
> dbus.Uint32(handle))
>
> But I get a different error this time around:
>
> AttributeError: 'module' object has no attribute 'Uint32'
I am not a Python guru, but you might simply start using the Python
D-Bus documentation to find it out by yourself. Maybe it is dbus.UInt32.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users