Avatar of basquiat76
basquiat76
 asked on

how I can extract any useful information from the dbus bluez api that returns a byte array

I've got a function from the dbus bluez api that returns a byte array but I do not know how I can extract any useful information;

When i print the array to screen it looks like this:
 
dbus.Array([dbus.Byte(54), dbus.Byte(0), dbus.Byte(101), dbus.Byte(9), dbus.Byte(0), dbus.Byte(0), dbus.Byte(10               ), dbus.Byte(0), dbus.Byte(1), dbus.Byte(0), dbus.Byte(27), dbus.Byte(9), dbus.Byte(0), dbus.Byte(1), dbus.Byte               (53), dbus.Byte(3), dbus.Byte(25), dbus.Byte(17), dbus.Byte(5), dbus.Byte(9), dbus.Byte(0), dbus.Byte(4), dbus.               Byte(53), dbus.Byte(17), dbus.Byte(53), dbus.Byte(3), dbus.Byte(25), dbus.Byte(1), dbus.Byte(0), dbus.Byte(53),                dbus.Byte(5), dbus.Byte(25), dbus.Byte(0), dbus.Byte(3), dbus.Byte(8), dbus.Byte(9), dbus.Byte(53), dbus.Byte(               3), dbus.Byte(25), dbus.Byte(0), dbus.Byte(8), dbus.Byte(9), dbus.Byte(0), dbus.Byte(5), dbus.Byte(53), dbus.By               te(3), dbus.Byte(25), dbus.Byte(16), dbus.Byte(2), dbus.Byte(9), dbus.Byte(0), dbus.Byte(6), dbus.Byte(53), dbu               s.Byte(9), dbus.Byte(9), dbus.Byte(101), dbus.Byte(110), dbus.Byte(9), dbus.Byte(0), dbus.Byte(106), dbus.Byte(               9), dbus.Byte(1), dbus.Byte(0), dbus.Byte(9), dbus.Byte(0), dbus.Byte(9), dbus.Byte(53), dbus.Byte(8), dbus.Byt               e(53), dbus.Byte(6), dbus.Byte(25), dbus.Byte(17), dbus.Byte(5), dbus.Byte(9), dbus.Byte(1), dbus.Byte(0), dbus               .Byte(9), dbus.Byte(1), dbus.Byte(0), dbus.Byte(37), dbus.Byte(16), dbus.Byte(79), dbus.Byte(66), dbus.Byte(69)               , dbus.Byte(88), dbus.Byte(32), dbus.Byte(79), dbus.Byte(98), dbus.Byte(106), dbus.Byte(101), dbus.Byte(99), db               us.Byte(116), dbus.Byte(32), dbus.Byte(80), dbus.Byte(117), dbus.Byte(115), dbus.Byte(104), dbus.Byte(9), dbus.               Byte(3), dbus.Byte(3), dbus.Byte(53), dbus.Byte(2), dbus.Byte(8), dbus.Byte(255)], signature=dbus.Signature('y'               ))

How can I do to extract useful information from this result?

is there any way to convert the array elements into a readable string so i know what the array contains?

thanks in advance, bs
ProgrammingPythonLinux OS Dev

Avatar of undefined
Last Comment
hweber

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
hweber

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes