Barry Byford

Results 87 comments of Barry Byford

There is working code in the event_service branch which needs to be merged in to main. e280ec829dd3334975dbd5fcd817eac9839331d5

Thanks for the suggestion @andysan. I have just had a brief look at the docs and done the simple example below. I'll leave this here for future reference: ```python from...

The Bluezero project grew out of helping school children do STEM projects. When looking at design choices I always have in my mind, how would I explain this to a...

Some progress has been made on using from `gi.repository import Gio`. For reference, the most helpful documentation was at: https://lazka.github.io/pgi-docs/#Gio-2.0 A minimal example is below. This requires that property and...

The following example is a client again but this tries to introspect the D-Bus object and combine interfaces so that they can all be access from the one python object...

Further investigation is still required before this is ready to be used on the bluezero library. However, it has given me encouragement that it is worth pursuing. It seems like...

Example of publishing methods to the System Bus ```python from gi.repository import Gio, GLib, GObject class Server: def __init__(self, con, path): method_outargs = {} method_inargs = {} for interface in...

Some experiments to get the DBus object information managed by BlueZ: ```python from pprint import pprint from gi.repository import Gio class BluezObjectManager: def __init__(self): self.obj_mngr = Gio.DBusProxy.new_for_bus_sync( bus_type=Gio.BusType.SYSTEM, flags=Gio.DBusProxyFlags.NONE, info=None,...

Have started to make changes to Bluezero on the following development branch: https://github.com/ukBaz/python-bluezero/tree/gdbus

I've written some notes about using PyGObject library for BlueZ D-Bus APIs: https://ukbaz.github.io/howto/python_gio_1.html https://ukbaz.github.io/howto/python_gio_2.html https://ukbaz.github.io/howto/python_gio_3.html