Documentation ¶
Index ¶
- Constants
- func GetConnection(connType BusType) (*dbus.Conn, error)
- type BusType
- type Client
- func (c *Client) Call(method string, flags dbus.Flags, args ...interface{}) *dbus.Call
- func (c *Client) Connect() error
- func (c *Client) Disconnect()
- func (c *Client) GetProperties(props interface{}) error
- func (c *Client) GetProperty(p string) (dbus.Variant, error)
- func (c *Client) Register(path string, iface string) (chan *dbus.Signal, error)
- func (c *Client) SetProperty(p string, v interface{}) error
- func (c *Client) Unregister(path string, iface string) error
- type Config
Constants ¶
View Source
const ( //Device1Interface the bluez interface for Device1 Device1Interface = "org.bluez.Device1" //Adapter1Interface the bluez interface for Adapter1 Adapter1Interface = "org.bluez.Adapter1" //GattService1Interface the bluez interface for GattService1 GattService1Interface = "org.bluez.GattService1" //GattCharacteristic1Interface the bluez interface for GattCharacteristic1 GattCharacteristic1Interface = "org.bluez.GattCharacteristic1" //GattDescriptor1Interface the bluez interface for GattDescriptor1 GattDescriptor1Interface = "org.bluez.GattDescriptor1" //InterfacesRemoved the DBus signal member for InterfacesRemoved InterfacesRemoved = "org.freedesktop.DBus.ObjectManager.InterfacesRemoved" //InterfacesAdded the DBus signal member for InterfacesAdded InterfacesAdded = "org.freedesktop.DBus.ObjectManager.InterfacesAdded" //PropertiesInterface the DBus properties interface PropertiesInterface = "org.freedesktop.DBus.Properties" //PropertiesChanged the DBus properties interface and member PropertiesChanged = "org.freedesktop.DBus.Properties.PropertiesChanged" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Config *Config // contains filtered or unexported fields }
Client implement a DBus client
func (*Client) GetProperties ¶
GetProperties load all the properties for an interface
func (*Client) GetProperty ¶
GetProperty return a property value
func (*Client) SetProperty ¶
SetProperty set a property value
Click to show internal directories.
Click to hide internal directories.