| 1 | // Code generated by go-bluetooth generator DO NOT EDIT. |
| 2 | |
| 3 | package advertisingscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/ |
| 4 | |
| 5 | import ( |
| 6 | "fmtscip-go gomod github.com/golang/go/src go1.14 fmt/" |
| 7 | "syncscip-go gomod github.com/golang/go/src go1.14 sync/" |
| 8 | |
| 9 | "github.com/godbus/dbus/v5scip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/" |
| 10 | "github.com/muka/go-bluetooth/bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/" |
| 11 | "github.com/muka/go-bluetooth/propsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/" |
| 12 | "github.com/muka/go-bluetooth/utilscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/" |
| 13 | ) |
| 14 | |
| 15 | var LEAdvertisingManager1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Interface. = "org.bluez.LEAdvertisingManager1" |
| 16 | |
| 17 | // NewLEAdvertisingManager1 create a new instance of LEAdvertisingManager1 |
| 18 | // |
| 19 | // Args: |
| 20 | // - objectPath: /org/bluez/{hci0,hci1,...} |
| 21 | func NewLEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/NewLEAdvertisingManager1().(objectPath dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#) (*LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#, error) { |
| 22 | a := new(LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) |
| 23 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client. = bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.NewClientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/NewClient().( |
| 24 | &bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#{ |
| 25 | Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Name.: "org.bluez", |
| 26 | Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface.: LEAdvertisingManager1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Interface., |
| 27 | Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path.: dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#(objectPath), |
| 28 | Busscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Bus.: bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.SystemBusscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/SystemBus., |
| 29 | }, |
| 30 | ) |
| 31 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties. = new(LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) |
| 32 | |
| 33 | _, err := a.GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperties().() |
| 34 | if err != nil { |
| 35 | return nil, err |
| 36 | } |
| 37 | return a, nil |
| 38 | } |
| 39 | |
| 40 | // NewLEAdvertisingManager1FromAdapterID create a new instance of LEAdvertisingManager1 |
| 41 | // adapterID: ID of an adapter eg. hci0 |
| 42 | func NewLEAdvertisingManager1FromAdapterIDscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/NewLEAdvertisingManager1FromAdapterID().(adapterID string) (*LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#, error) { |
| 43 | a := new(LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) |
| 44 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client. = bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.NewClientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/NewClient().( |
| 45 | &bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#{ |
| 46 | Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Name.: "org.bluez", |
| 47 | Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface.: LEAdvertisingManager1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Interface., |
| 48 | Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path.: dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#(fmtscip-go gomod github.com/golang/go/src go1.14 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.14 fmt/Sprintf().("/org/bluez/%s", adapterID)), |
| 49 | Busscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Bus.: bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.SystemBusscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/SystemBus., |
| 50 | }, |
| 51 | ) |
| 52 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties. = new(LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) |
| 53 | |
| 54 | _, err := a.GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperties().() |
| 55 | if err != nil { |
| 56 | return nil, err |
| 57 | } |
| 58 | return a, nil |
| 59 | } |
| 60 | |
| 61 | /* |
| 62 | LEAdvertisingManager1 LE Advertising Manager hierarchy |
| 63 | |
| 64 | The Advertising Manager allows external applications to register Advertisement |
| 65 | Data which should be broadcast to devices. Advertisement Data elements must |
| 66 | follow the API for LE Advertisement Data described above. |
| 67 | |
| 68 | */ |
| 69 | type LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1# struct { |
| 70 | clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client. *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client# |
| 71 | propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 72 | objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 73 | objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManager. *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.ObjectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager# |
| 74 | Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties. *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties# |
| 75 | watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#watchPropertiesChannel. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 76 | } |
| 77 | |
| 78 | // LEAdvertisingManager1Properties contains the exposed properties of an interface |
| 79 | type LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties# struct { |
| 80 | lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#lock. syncscip-go gomod github.com/golang/go/src go1.14 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex# `dbus:"ignore"` |
| 81 | |
| 82 | /* |
| 83 | ActiveInstances Number of active advertising instances. |
| 84 | */ |
| 85 | ActiveInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#ActiveInstances. byte |
| 86 | |
| 87 | /* |
| 88 | MaxAdvLen Max advertising data length |
| 89 | */ |
| 90 | MaxAdvLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#MaxAdvLen. byte |
| 91 | |
| 92 | /* |
| 93 | MaxScnRspLen Max advertising scan response length |
| 94 | */ |
| 95 | MaxScnRspLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#MaxScnRspLen. byte |
| 96 | |
| 97 | /* |
| 98 | MaxTxPower Max advertising tx power (dBm) |
| 99 | */ |
| 100 | MaxTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#MaxTxPower. int16 |
| 101 | |
| 102 | /* |
| 103 | MinTxPower Min advertising tx power (dBm) |
| 104 | */ |
| 105 | MinTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#MinTxPower. int16 |
| 106 | |
| 107 | /* |
| 108 | SupportedCapabilities Enumerates Advertising-related controller capabilities |
| 109 | useful to the client. |
| 110 | |
| 111 | Possible Values: |
| 112 | */ |
| 113 | SupportedCapabilitiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#SupportedCapabilities. map[string]interface{} |
| 114 | |
| 115 | /* |
| 116 | SupportedFeatures List of supported platform features. If no features |
| 117 | are available on the platform, the SupportedFeatures |
| 118 | array will be empty. |
| 119 | |
| 120 | Possible values: "CanSetTxPower" |
| 121 | |
| 122 | Indicates whether platform can |
| 123 | specify tx power on each |
| 124 | advertising instance. |
| 125 | |
| 126 | "HardwareOffload" |
| 127 | |
| 128 | Indicates whether multiple |
| 129 | advertising will be offloaded |
| 130 | to the controller. |
| 131 | */ |
| 132 | SupportedFeaturesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#SupportedFeatures. []string |
| 133 | |
| 134 | /* |
| 135 | SupportedIncludes List of supported system includes. |
| 136 | |
| 137 | Possible values: "tx-power" |
| 138 | "appearance" |
| 139 | "local-name" |
| 140 | */ |
| 141 | SupportedIncludesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#SupportedIncludes. []string |
| 142 | |
| 143 | /* |
| 144 | SupportedInstances Number of available advertising instances. |
| 145 | */ |
| 146 | SupportedInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#SupportedInstances. byte |
| 147 | |
| 148 | /* |
| 149 | SupportedSecondaryChannels List of supported Secondary channels. Secondary |
| 150 | channels can be used to advertise with the |
| 151 | corresponding PHY. |
| 152 | |
| 153 | Possible values: "1M" |
| 154 | "2M" |
| 155 | "Coded" |
| 156 | */ |
| 157 | SupportedSecondaryChannelsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#SupportedSecondaryChannels. []string |
| 158 | } |
| 159 | |
| 160 | //Lock access to properties |
| 161 | func (p *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#Lock().() { |
| 162 | p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#lock..Lockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Lock().() |
| 163 | } |
| 164 | |
| 165 | //Unlock access to properties |
| 166 | func (p *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#Unlock().() { |
| 167 | p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#lock..Unlockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Unlock().() |
| 168 | } |
| 169 | |
| 170 | // SetActiveInstances set ActiveInstances value |
| 171 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetActiveInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetActiveInstances().(v byte) error { |
| 172 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("ActiveInstances", v) |
| 173 | } |
| 174 | |
| 175 | // GetActiveInstances get ActiveInstances value |
| 176 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetActiveInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetActiveInstances().() (byte, error) { |
| 177 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("ActiveInstances") |
| 178 | if err != nil { |
| 179 | return byte(0), err |
| 180 | } |
| 181 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(byte), nil |
| 182 | } |
| 183 | |
| 184 | // SetMaxAdvLen set MaxAdvLen value |
| 185 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetMaxAdvLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetMaxAdvLen().(v byte) error { |
| 186 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("MaxAdvLen", v) |
| 187 | } |
| 188 | |
| 189 | // GetMaxAdvLen get MaxAdvLen value |
| 190 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetMaxAdvLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetMaxAdvLen().() (byte, error) { |
| 191 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("MaxAdvLen") |
| 192 | if err != nil { |
| 193 | return byte(0), err |
| 194 | } |
| 195 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(byte), nil |
| 196 | } |
| 197 | |
| 198 | // SetMaxScnRspLen set MaxScnRspLen value |
| 199 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetMaxScnRspLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetMaxScnRspLen().(v byte) error { |
| 200 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("MaxScnRspLen", v) |
| 201 | } |
| 202 | |
| 203 | // GetMaxScnRspLen get MaxScnRspLen value |
| 204 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetMaxScnRspLenscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetMaxScnRspLen().() (byte, error) { |
| 205 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("MaxScnRspLen") |
| 206 | if err != nil { |
| 207 | return byte(0), err |
| 208 | } |
| 209 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(byte), nil |
| 210 | } |
| 211 | |
| 212 | // SetMaxTxPower set MaxTxPower value |
| 213 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetMaxTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetMaxTxPower().(v int16) error { |
| 214 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("MaxTxPower", v) |
| 215 | } |
| 216 | |
| 217 | // GetMaxTxPower get MaxTxPower value |
| 218 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetMaxTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetMaxTxPower().() (int16, error) { |
| 219 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("MaxTxPower") |
| 220 | if err != nil { |
| 221 | return int16(0), err |
| 222 | } |
| 223 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(int16), nil |
| 224 | } |
| 225 | |
| 226 | // SetMinTxPower set MinTxPower value |
| 227 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetMinTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetMinTxPower().(v int16) error { |
| 228 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("MinTxPower", v) |
| 229 | } |
| 230 | |
| 231 | // GetMinTxPower get MinTxPower value |
| 232 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetMinTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetMinTxPower().() (int16, error) { |
| 233 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("MinTxPower") |
| 234 | if err != nil { |
| 235 | return int16(0), err |
| 236 | } |
| 237 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(int16), nil |
| 238 | } |
| 239 | |
| 240 | // SetSupportedCapabilities set SupportedCapabilities value |
| 241 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetSupportedCapabilitiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetSupportedCapabilities().(v map[string]interface{}) error { |
| 242 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("SupportedCapabilities", v) |
| 243 | } |
| 244 | |
| 245 | // GetSupportedCapabilities get SupportedCapabilities value |
| 246 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetSupportedCapabilitiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetSupportedCapabilities().() (map[string]interface{}, error) { |
| 247 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("SupportedCapabilities") |
| 248 | if err != nil { |
| 249 | return map[string]interface{}{}, err |
| 250 | } |
| 251 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(map[string]interface{}), nil |
| 252 | } |
| 253 | |
| 254 | // SetSupportedFeatures set SupportedFeatures value |
| 255 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetSupportedFeaturesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetSupportedFeatures().(v []string) error { |
| 256 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("SupportedFeatures", v) |
| 257 | } |
| 258 | |
| 259 | // GetSupportedFeatures get SupportedFeatures value |
| 260 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetSupportedFeaturesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetSupportedFeatures().() ([]string, error) { |
| 261 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("SupportedFeatures") |
| 262 | if err != nil { |
| 263 | return []string{}, err |
| 264 | } |
| 265 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil |
| 266 | } |
| 267 | |
| 268 | // SetSupportedIncludes set SupportedIncludes value |
| 269 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetSupportedIncludesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetSupportedIncludes().(v []string) error { |
| 270 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("SupportedIncludes", v) |
| 271 | } |
| 272 | |
| 273 | // GetSupportedIncludes get SupportedIncludes value |
| 274 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetSupportedIncludesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetSupportedIncludes().() ([]string, error) { |
| 275 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("SupportedIncludes") |
| 276 | if err != nil { |
| 277 | return []string{}, err |
| 278 | } |
| 279 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil |
| 280 | } |
| 281 | |
| 282 | // SetSupportedInstances set SupportedInstances value |
| 283 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetSupportedInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetSupportedInstances().(v byte) error { |
| 284 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("SupportedInstances", v) |
| 285 | } |
| 286 | |
| 287 | // GetSupportedInstances get SupportedInstances value |
| 288 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetSupportedInstancesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetSupportedInstances().() (byte, error) { |
| 289 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("SupportedInstances") |
| 290 | if err != nil { |
| 291 | return byte(0), err |
| 292 | } |
| 293 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(byte), nil |
| 294 | } |
| 295 | |
| 296 | // SetSupportedSecondaryChannels set SupportedSecondaryChannels value |
| 297 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetSupportedSecondaryChannelsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetSupportedSecondaryChannels().(v []string) error { |
| 298 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().("SupportedSecondaryChannels", v) |
| 299 | } |
| 300 | |
| 301 | // GetSupportedSecondaryChannels get SupportedSecondaryChannels value |
| 302 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetSupportedSecondaryChannelsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetSupportedSecondaryChannels().() ([]string, error) { |
| 303 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().("SupportedSecondaryChannels") |
| 304 | if err != nil { |
| 305 | return []string{}, err |
| 306 | } |
| 307 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil |
| 308 | } |
| 309 | |
| 310 | // Close the connection |
| 311 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) Closescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Close().() { |
| 312 | a.unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#unregisterPropertiesSignal().() |
| 313 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Disconnectscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Disconnect().() |
| 314 | } |
| 315 | |
| 316 | // Path return LEAdvertisingManager1 object path |
| 317 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Path().() dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath# { |
| 318 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path. |
| 319 | } |
| 320 | |
| 321 | // Client return LEAdvertisingManager1 dbus client |
| 322 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Client().() *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client# { |
| 323 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client. |
| 324 | } |
| 325 | |
| 326 | // Interface return LEAdvertisingManager1 interface |
| 327 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Interface().() string { |
| 328 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface. |
| 329 | } |
| 330 | |
| 331 | // GetObjectManagerSignal return a channel for receiving updates from the ObjectManager |
| 332 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetObjectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetObjectManagerSignal().() (chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#, func(), error) { |
| 333 | |
| 334 | if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. == nil { |
| 335 | if a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManager. == nil { |
| 336 | om, err := bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.GetObjectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/GetObjectManager().() |
| 337 | if err != nil { |
| 338 | return nil, nil, err |
| 339 | } |
| 340 | a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManager. = om |
| 341 | } |
| 342 | |
| 343 | s, err := a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManager..Registerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager#Register().() |
| 344 | if err != nil { |
| 345 | return nil, nil, err |
| 346 | } |
| 347 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. = s |
| 348 | } |
| 349 | |
| 350 | cancel := func() { |
| 351 | if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. == nil { |
| 352 | return |
| 353 | } |
| 354 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. <- nil |
| 355 | a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManager..Unregisterscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager#Unregister().(a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal.) |
| 356 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal. = nil |
| 357 | } |
| 358 | |
| 359 | return a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#objectManagerSignal., cancel, nil |
| 360 | } |
| 361 | |
| 362 | // ToMap convert a LEAdvertisingManager1Properties to map |
| 363 | func (a *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) ToMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#ToMap().() (map[string]interface{}, error) { |
| 364 | return propsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/.ToMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/ToMap().(a), nil |
| 365 | } |
| 366 | |
| 367 | // FromMap convert a map to an LEAdvertisingManager1Properties |
| 368 | func (a *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) FromMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#FromMap().(props map[string]interface{}) (*LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#, error) { |
| 369 | props1 := map[string]dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#{} |
| 370 | for k, val := range props { |
| 371 | props1[k] = dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.MakeVariantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/MakeVariant().(val) |
| 372 | } |
| 373 | return a.FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#FromDBusMap().(props1) |
| 374 | } |
| 375 | |
| 376 | // FromDBusMap convert a map to an LEAdvertisingManager1Properties |
| 377 | func (a *LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#FromDBusMap().(props map[string]dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#) (*LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#, error) { |
| 378 | s := new(LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#) |
| 379 | err := utilscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/.MapToStructscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/MapToStruct().(s, props) |
| 380 | return s, err |
| 381 | } |
| 382 | |
| 383 | // ToProps return the properties interface |
| 384 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) ToPropsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#ToProps().() bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Properties# { |
| 385 | return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties. |
| 386 | } |
| 387 | |
| 388 | // GetWatchPropertiesChannel return the dbus channel to receive properties interface |
| 389 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetWatchPropertiesChannel().() chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# { |
| 390 | return a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#watchPropertiesChannel. |
| 391 | } |
| 392 | |
| 393 | // SetWatchPropertiesChannel set the dbus channel to receive properties interface |
| 394 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetWatchPropertiesChannel().(c chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#) { |
| 395 | a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#watchPropertiesChannel. = c |
| 396 | } |
| 397 | |
| 398 | // GetProperties load all available properties |
| 399 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperties().() (*LEAdvertisingManager1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#, error) { |
| 400 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties..Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#Lock().() |
| 401 | err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#GetProperties().(a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties.) |
| 402 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties..Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1Properties#Unlock().() |
| 403 | return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#Properties., err |
| 404 | } |
| 405 | |
| 406 | // SetProperty set a property |
| 407 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#SetProperty().(name string, value interface{}) error { |
| 408 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#SetProperty().(name, value) |
| 409 | } |
| 410 | |
| 411 | // GetProperty get a property |
| 412 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetProperty().(name string) (dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#, error) { |
| 413 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#GetProperty().(name) |
| 414 | } |
| 415 | |
| 416 | // GetPropertiesSignal return a channel for receiving udpdates on property changes |
| 417 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) GetPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#GetPropertiesSignal().() (chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#, error) { |
| 418 | |
| 419 | if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. == nil { |
| 420 | s, err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Registerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Register().(a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path., bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertiesInterfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertiesInterface.) |
| 421 | if err != nil { |
| 422 | return nil, err |
| 423 | } |
| 424 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. = s |
| 425 | } |
| 426 | |
| 427 | return a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal., nil |
| 428 | } |
| 429 | |
| 430 | // Unregister for changes signalling |
| 431 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#unregisterPropertiesSignal().() { |
| 432 | if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. != nil { |
| 433 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. <- nil |
| 434 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#propertiesSignal. = nil |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | // WatchProperties updates on property changes |
| 439 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) WatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#WatchProperties().() (chan *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertyChangedscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertyChanged#, error) { |
| 440 | return bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.WatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/WatchProperties().(a) |
| 441 | } |
| 442 | |
| 443 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) UnwatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#UnwatchProperties().(ch chan *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertyChangedscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertyChanged#) error { |
| 444 | return bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.UnwatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/UnwatchProperties().(a, ch) |
| 445 | } |
| 446 | |
| 447 | /* |
| 448 | RegisterAdvertisement Registers an advertisement object to be sent over the LE |
| 449 | Advertising channel. The service must be exported |
| 450 | under interface LEAdvertisement1. |
| 451 | InvalidArguments error indicates that the object has |
| 452 | invalid or conflicting properties. |
| 453 | InvalidLength error indicates that the data |
| 454 | provided generates a data packet which is too long. |
| 455 | The properties of this object are parsed when it is |
| 456 | registered, and any changes are ignored. |
| 457 | If the same object is registered twice it will result in |
| 458 | an AlreadyExists error. |
| 459 | If the maximum number of advertisement instances is |
| 460 | reached it will result in NotPermitted error. |
| 461 | Possible errors: org.bluez.Error.InvalidArguments |
| 462 | org.bluez.Error.AlreadyExists |
| 463 | org.bluez.Error.InvalidLength |
| 464 | org.bluez.Error.NotPermitted |
| 465 | |
| 466 | */ |
| 467 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) RegisterAdvertisementscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#RegisterAdvertisement().(advertisement dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#, options map[string]interface{}) error { |
| 468 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("RegisterAdvertisement", 0, advertisement, options).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().() |
| 469 | } |
| 470 | |
| 471 | /* |
| 472 | UnregisterAdvertisement This unregisters an advertisement that has been |
| 473 | previously registered. The object path parameter must |
| 474 | match the same value that has been used on registration. |
| 475 | Possible errors: org.bluez.Error.InvalidArguments |
| 476 | org.bluez.Error.DoesNotExist |
| 477 | |
| 478 | */ |
| 479 | func (a *LEAdvertisingManager1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#) UnregisterAdvertisementscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#UnregisterAdvertisement().(advertisement dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#) error { |
| 480 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisingManager1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("UnregisterAdvertisement", 0, advertisement).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().() |
| 481 | } |