Debian Codegraph @

bluez/profile/advertising/gen_LEAdvertisement1.go

raw symbols SCIP
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 "syncscip-go gomod github.com/golang/go/src go1.14 sync/"
7
8 "github.com/godbus/dbus/v5scip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/"
9 "github.com/muka/go-bluetooth/bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/"
10 "github.com/muka/go-bluetooth/propsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/"
11 "github.com/muka/go-bluetooth/utilscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/"
12 )
13
14 var LEAdvertisement1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Interface. = "org.bluez.LEAdvertisement1"
15
16 // NewLEAdvertisement1 create a new instance of LEAdvertisement1
17 //
18 // Args:
19 // - objectPath: freely definable
20 func NewLEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/NewLEAdvertisement1().(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#) (*LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#, error) {
21 a := new(LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#)
22 a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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().(
23 &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#{
24 Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Name.: "org.bluez",
25 Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface.: LEAdvertisement1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Interface.,
26 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),
27 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.,
28 },
29 )
30 a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties. = new(LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#)
31
32 _, err := a.GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperties().()
33 if err != nil {
34 return nil, err
35 }
36 return a, nil
37 }
38
39 /*
40 LEAdvertisement1 LE Advertisement Data hierarchy
41
42 Specifies the Advertisement Data to be broadcast and some advertising
43 parameters. Properties which are not present will not be included in the
44 data. Required advertisement data types will always be included.
45 All UUIDs are 128-bit versions in the API, and 16 or 32-bit
46 versions of the same UUID will be used in the advertising data as appropriate.
47
48 */
49 type LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1# struct {
50 clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#
51 propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#
52 objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#
53 objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#
54 Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties. *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#
55 watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#
56 }
57
58 // LEAdvertisement1Properties contains the exposed properties of an interface
59 type LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties# struct {
60 lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#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"`
61
62 /*
63 Appearance Appearance to be used in the advertising report.
64
65 Possible values: as found on GAP Service.
66 */
67 Appearancescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Appearance. uint16
68
69 /*
70 Data Advertising Type to include in the Advertising
71 Data. Key is the advertising type and value is the
72 data as byte array.
73
74 Note: Types already handled by other properties shall
75 not be used.
76
77 Possible values:
78 <type> <byte array>
79 ...
80
81 Example:
82 <Transport Discovery> <Organization Flags...>
83 0x26 0x01 0x01...
84 */
85 Datascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Data. map[byte]interface{}
86
87 /*
88 Discoverable Advertise as general discoverable. When present this
89 will override adapter Discoverable property.
90
91 Note: This property shall not be set when Type is set
92 to broadcast.
93 */
94 Discoverablescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Discoverable. bool
95
96 /*
97 DiscoverableTimeout The discoverable timeout in seconds. A value of zero
98 means that the timeout is disabled and it will stay in
99 discoverable/limited mode forever.
100
101 Note: This property shall not be set when Type is set
102 to broadcast.
103 */
104 DiscoverableTimeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#DiscoverableTimeout. uint16
105
106 /*
107 Duration Duration of the advertisement in seconds. If there are
108 other applications advertising no duration is set the
109 default is 2 seconds.
110 */
111 Durationscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Duration. uint16
112
113 /*
114 Includes List of features to be included in the advertising
115 packet.
116
117 Possible values: as found on
118 LEAdvertisingManager.SupportedIncludes
119 */
120 Includesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Includes. []string
121
122 /*
123 LocalName Local name to be used in the advertising report. If the
124 string is too big to fit into the packet it will be
125 truncated.
126
127 If this property is available 'local-name' cannot be
128 present in the Includes.
129 */
130 LocalNamescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#LocalName. string
131
132 /*
133 ManufacturerData Manufactuer Data fields to include in
134 the Advertising Data. Keys are the Manufacturer ID
135 to associate with the data.
136 */
137 ManufacturerDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#ManufacturerData. map[uint16]interface{}
138
139 /*
140 MaxInterval Maximum advertising interval to be used by the
141 advertising set, in milliseconds. Acceptable values
142 are in the range [20ms, 10,485s]. If the provided
143 MinInterval is larger than the provided MaxInterval,
144 the registration will return failure.
145 */
146 MaxIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#MaxInterval. uint32
147
148 /*
149 MinInterval Minimum advertising interval to be used by the
150 advertising set, in milliseconds. Acceptable values
151 are in the range [20ms, 10,485s]. If the provided
152 MinInterval is larger than the provided MaxInterval,
153 the registration will return failure.
154 */
155 MinIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#MinInterval. uint32
156
157 /*
158 SecondaryChannel Secondary channel to be used. Primary channel is
159 always set to "1M" except when "Coded" is set.
160
161 Possible value: "1M" (default)
162 "2M"
163 "Coded"
164 */
165 SecondaryChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#SecondaryChannel. string `dbus:"omitEmpty"`
166
167 /*
168 ServiceData Service Data elements to include. The keys are the
169 UUID to associate with the data.
170 */
171 ServiceDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#ServiceData. map[string]interface{}
172
173 /*
174 ServiceUUIDs List of UUIDs to include in the "Service UUID" field of
175 the Advertising Data.
176 */
177 ServiceUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#ServiceUUIDs. []string
178
179 /*
180 SolicitUUIDs Array of UUIDs to include in "Service Solicitation"
181 Advertisement Data.
182 */
183 SolicitUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#SolicitUUIDs. []string
184
185 /*
186 Timeout Timeout of the advertisement in seconds. This defines
187 the lifetime of the advertisement.
188 */
189 Timeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Timeout. uint16
190
191 /*
192 TxPower Requested transmission power of this advertising set.
193 The provided value is used only if the "CanSetTxPower"
194 feature is enabled on the Advertising Manager. The
195 provided value must be in range [-127 to +20], where
196 units are in dBm.
197 */
198 TxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#TxPower. int16
199
200 /*
201 Type Determines the type of advertising packet requested.
202
203 Possible values: "broadcast" or "peripheral"
204 */
205 Typescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Type. string
206 }
207
208 //Lock access to properties
209 func (p *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#) Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Lock().() {
210 p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#lock..Lockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Lock().()
211 }
212
213 //Unlock access to properties
214 func (p *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#) Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Unlock().() {
215 p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#lock..Unlockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Unlock().()
216 }
217
218 // SetAppearance set Appearance value
219 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetAppearancescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetAppearance().(v uint16) error {
220 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Appearance", v)
221 }
222
223 // GetAppearance get Appearance value
224 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetAppearancescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetAppearance().() (uint16, error) {
225 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Appearance")
226 if err != nil {
227 return uint16(0), err
228 }
229 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint16), nil
230 }
231
232 // SetData set Data value
233 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetData().(v map[string]interface{}) error {
234 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Data", v)
235 }
236
237 // GetData get Data value
238 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetData().() (map[string]interface{}, error) {
239 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Data")
240 if err != nil {
241 return map[string]interface{}{}, err
242 }
243 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(map[string]interface{}), nil
244 }
245
246 // SetDiscoverable set Discoverable value
247 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetDiscoverablescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetDiscoverable().(v bool) error {
248 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Discoverable", v)
249 }
250
251 // GetDiscoverable get Discoverable value
252 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetDiscoverablescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetDiscoverable().() (bool, error) {
253 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Discoverable")
254 if err != nil {
255 return false, err
256 }
257 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(bool), nil
258 }
259
260 // SetDiscoverableTimeout set DiscoverableTimeout value
261 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetDiscoverableTimeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetDiscoverableTimeout().(v uint16) error {
262 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("DiscoverableTimeout", v)
263 }
264
265 // GetDiscoverableTimeout get DiscoverableTimeout value
266 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetDiscoverableTimeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetDiscoverableTimeout().() (uint16, error) {
267 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("DiscoverableTimeout")
268 if err != nil {
269 return uint16(0), err
270 }
271 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint16), nil
272 }
273
274 // SetDuration set Duration value
275 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetDurationscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetDuration().(v uint16) error {
276 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Duration", v)
277 }
278
279 // GetDuration get Duration value
280 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetDurationscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetDuration().() (uint16, error) {
281 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Duration")
282 if err != nil {
283 return uint16(0), err
284 }
285 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint16), nil
286 }
287
288 // SetIncludes set Includes value
289 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetIncludesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetIncludes().(v []string) error {
290 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Includes", v)
291 }
292
293 // GetIncludes get Includes value
294 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetIncludesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetIncludes().() ([]string, error) {
295 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Includes")
296 if err != nil {
297 return []string{}, err
298 }
299 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil
300 }
301
302 // SetLocalName set LocalName value
303 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetLocalNamescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetLocalName().(v string) error {
304 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("LocalName", v)
305 }
306
307 // GetLocalName get LocalName value
308 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetLocalNamescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetLocalName().() (string, error) {
309 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("LocalName")
310 if err != nil {
311 return "", err
312 }
313 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(string), nil
314 }
315
316 // SetManufacturerData set ManufacturerData value
317 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetManufacturerDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetManufacturerData().(v map[string]interface{}) error {
318 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("ManufacturerData", v)
319 }
320
321 // GetManufacturerData get ManufacturerData value
322 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetManufacturerDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetManufacturerData().() (map[string]interface{}, error) {
323 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("ManufacturerData")
324 if err != nil {
325 return map[string]interface{}{}, err
326 }
327 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(map[string]interface{}), nil
328 }
329
330 // SetMaxInterval set MaxInterval value
331 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetMaxIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetMaxInterval().(v uint32) error {
332 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("MaxInterval", v)
333 }
334
335 // GetMaxInterval get MaxInterval value
336 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetMaxIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetMaxInterval().() (uint32, error) {
337 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("MaxInterval")
338 if err != nil {
339 return uint32(0), err
340 }
341 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint32), nil
342 }
343
344 // SetMinInterval set MinInterval value
345 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetMinIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetMinInterval().(v uint32) error {
346 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("MinInterval", v)
347 }
348
349 // GetMinInterval get MinInterval value
350 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetMinIntervalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetMinInterval().() (uint32, error) {
351 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("MinInterval")
352 if err != nil {
353 return uint32(0), err
354 }
355 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint32), nil
356 }
357
358 // SetSecondaryChannel set SecondaryChannel value
359 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetSecondaryChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetSecondaryChannel().(v string) error {
360 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("SecondaryChannel", v)
361 }
362
363 // GetSecondaryChannel get SecondaryChannel value
364 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetSecondaryChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetSecondaryChannel().() (string, error) {
365 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("SecondaryChannel")
366 if err != nil {
367 return "", err
368 }
369 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(string), nil
370 }
371
372 // SetServiceData set ServiceData value
373 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetServiceDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetServiceData().(v map[string]interface{}) error {
374 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("ServiceData", v)
375 }
376
377 // GetServiceData get ServiceData value
378 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetServiceDatascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetServiceData().() (map[string]interface{}, error) {
379 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("ServiceData")
380 if err != nil {
381 return map[string]interface{}{}, err
382 }
383 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(map[string]interface{}), nil
384 }
385
386 // SetServiceUUIDs set ServiceUUIDs value
387 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetServiceUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetServiceUUIDs().(v []string) error {
388 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("ServiceUUIDs", v)
389 }
390
391 // GetServiceUUIDs get ServiceUUIDs value
392 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetServiceUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetServiceUUIDs().() ([]string, error) {
393 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("ServiceUUIDs")
394 if err != nil {
395 return []string{}, err
396 }
397 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil
398 }
399
400 // SetSolicitUUIDs set SolicitUUIDs value
401 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetSolicitUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetSolicitUUIDs().(v []string) error {
402 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("SolicitUUIDs", v)
403 }
404
405 // GetSolicitUUIDs get SolicitUUIDs value
406 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetSolicitUUIDsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetSolicitUUIDs().() ([]string, error) {
407 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("SolicitUUIDs")
408 if err != nil {
409 return []string{}, err
410 }
411 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil
412 }
413
414 // SetTimeout set Timeout value
415 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetTimeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetTimeout().(v uint16) error {
416 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Timeout", v)
417 }
418
419 // GetTimeout get Timeout value
420 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetTimeoutscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetTimeout().() (uint16, error) {
421 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Timeout")
422 if err != nil {
423 return uint16(0), err
424 }
425 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint16), nil
426 }
427
428 // SetTxPower set TxPower value
429 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetTxPower().(v int16) error {
430 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("TxPower", v)
431 }
432
433 // GetTxPower get TxPower value
434 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetTxPowerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetTxPower().() (int16, error) {
435 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("TxPower")
436 if err != nil {
437 return int16(0), err
438 }
439 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(int16), nil
440 }
441
442 // SetType set Type value
443 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetTypescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetType().(v string) error {
444 return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().("Type", v)
445 }
446
447 // GetType get Type value
448 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetTypescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetType().() (string, error) {
449 v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperty().("Type")
450 if err != nil {
451 return "", err
452 }
453 return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(string), nil
454 }
455
456 // Close the connection
457 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) Closescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Close().() {
458 a.unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#unregisterPropertiesSignal().()
459 a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#client..Disconnectscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Disconnect().()
460 }
461
462 // Path return LEAdvertisement1 object path
463 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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# {
464 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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.
465 }
466
467 // Client return LEAdvertisement1 dbus client
468 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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# {
469 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#client.
470 }
471
472 // Interface return LEAdvertisement1 interface
473 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Interface().() string {
474 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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.
475 }
476
477 // GetObjectManagerSignal return a channel for receiving updates from the ObjectManager
478 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetObjectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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) {
479
480 if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal. == nil {
481 if a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManager. == nil {
482 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().()
483 if err != nil {
484 return nil, nil, err
485 }
486 a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManager. = om
487 }
488
489 s, err := a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManager..Registerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager#Register().()
490 if err != nil {
491 return nil, nil, err
492 }
493 a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal. = s
494 }
495
496 cancel := func() {
497 if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal. == nil {
498 return
499 }
500 a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal. <- nil
501 a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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`/LEAdvertisement1#objectManagerSignal.)
502 a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal. = nil
503 }
504
505 return a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#objectManagerSignal., cancel, nil
506 }
507
508 // ToMap convert a LEAdvertisement1Properties to map
509 func (a *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#) ToMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#ToMap().() (map[string]interface{}, error) {
510 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
511 }
512
513 // FromMap convert a map to an LEAdvertisement1Properties
514 func (a *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#) FromMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#FromMap().(props map[string]interface{}) (*LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#, error) {
515 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#{}
516 for k, val := range props {
517 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)
518 }
519 return a.FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#FromDBusMap().(props1)
520 }
521
522 // FromDBusMap convert a map to an LEAdvertisement1Properties
523 func (a *LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#) FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#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#) (*LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#, error) {
524 s := new(LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#)
525 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)
526 return s, err
527 }
528
529 // ToProps return the properties interface
530 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) ToPropsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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# {
531 return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties.
532 }
533
534 // GetWatchPropertiesChannel return the dbus channel to receive properties interface
535 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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# {
536 return a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#watchPropertiesChannel.
537 }
538
539 // SetWatchPropertiesChannel set the dbus channel to receive properties interface
540 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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#) {
541 a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#watchPropertiesChannel. = c
542 }
543
544 // GetProperties load all available properties
545 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#GetProperties().() (*LEAdvertisement1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#, error) {
546 a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties..Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Lock().()
547 err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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`/LEAdvertisement1#Properties.)
548 a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties..Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1Properties#Unlock().()
549 return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Properties., err
550 }
551
552 // SetProperty set a property
553 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#SetProperty().(name string, value interface{}) error {
554 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#client..SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#SetProperty().(name, value)
555 }
556
557 // GetProperty get a property
558 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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) {
559 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#client..GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#GetProperty().(name)
560 }
561
562 // GetPropertiesSignal return a channel for receiving udpdates on property changes
563 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) GetPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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) {
564
565 if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal. == nil {
566 s, err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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`/LEAdvertisement1#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.)
567 if err != nil {
568 return nil, err
569 }
570 a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal. = s
571 }
572
573 return a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal., nil
574 }
575
576 // Unregister for changes signalling
577 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#unregisterPropertiesSignal().() {
578 if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal. != nil {
579 a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal. <- nil
580 a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#propertiesSignal. = nil
581 }
582 }
583
584 // WatchProperties updates on property changes
585 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) WatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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) {
586 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)
587 }
588
589 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) UnwatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#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 {
590 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)
591 }
592
593 /*
594 Release This method gets called when the service daemon
595 removes the Advertisement. A client can use it to do
596 cleanup tasks. There is no need to call
597 UnregisterAdvertisement because when this method gets
598 called it has already been unregistered.
599
600 */
601 func (a *LEAdvertisement1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#) Releasescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#Release().() error {
602 return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/advertising`/LEAdvertisement1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("Release", 0).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().()
603 }