troubleshooting Question

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

Avatar of basquiat76
basquiat76 asked on
Linux OS DevProgrammingPython
1 Comment1 Solution408 ViewsLast Modified:
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

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros