Lines Matching refs:device
133 print 'Failed to get default device: %s' % e
137 self.device = dbus.Interface(obj, 'org.bluez.Adapter')
139 print 'Failed to setup device path: %s' % e
151 print 'Failed to setup signal handler for device path: %s' % e
173 print ' -i <dev> Specify device (e.g. "hci0" or "/org/bluez/hci0")'
217 for device in devices:
218 print device
229 print self.device.GetAddress()
231 print self.device.GetManufacturer()
233 print self.device.GetVersion()
235 print self.device.GetRevision()
237 print self.device.GetCompany()
239 print self.device.GetMode()
242 self.device.SetMode(self.cmd_args[0])
246 print '%u' % (self.device.GetDiscoverableTimeout())
249 self.device.SetDiscoverableTimeout(dbus.UInt32(self.cmd_args[0]))
253 print self.device.IsConnectable()
255 print self.device.IsDiscoverable()
258 print self.device.IsConnected(self.cmd_args[0])
262 print self.device.ListConnections()
264 print self.device.GetMajorClass()
266 print self.device.ListAvailableMinorClasses()
268 print self.device.GetMinorClass()
271 self.device.SetMinorClass(self.cmd_args[0])
275 classes = self.device.GetServiceClasses()
279 print self.device.GetName()
282 self.device.SetName(self.cmd_args[0])
287 print self.device.GetRemoteName(self.cmd_args[0])
292 print self.device.GetRemoteVersion(self.cmd_args[0])
297 print self.device.GetRemoteRevision(self.cmd_args[0])
302 print self.device.GetRemoteManufacturer(self.cmd_args[0])
307 print self.device.GetRemoteCompany(self.cmd_args[0])
312 print self.device.GetRemoteAlias(self.cmd_args[0])
317 print self.device.GetRemoteMajorClass(self.cmd_args[0])
322 print self.device.GetRemoteMinorClass(self.cmd_args[0])
327 print self.device.GetRemoteServiceClasses(self.cmd_args[0])
332 self.device.SetRemoteAlias(self.cmd_args[0], self.cmd_args[1])
337 print self.device.ClearRemoteAlias(self.cmd_args[0])
342 print self.device.LastSeen(self.cmd_args[0])
347 print self.device.LastUsed(self.cmd_args[0])
352 print self.device.LastUsed(self.cmd_args[0])
357 print self.device.CreateBonding(self.cmd_args[0])
362 print self.device.RemoveBonding(self.cmd_args[0])
367 print self.device.CancelBondingProcess(self.cmd_args[0])
372 print self.device.HasBonding(self.cmd_args[0])
376 bondings = self.device.ListBondings()
381 print self.device.GetPinCodeLength(self.cmd_args[0])
386 print self.device.GetEncryptionKeySize(self.cmd_args[0])
390 print self.device.DiscoverDevices()
392 print self.device.DiscoverDevicesWithoutNameResolving()
394 devices = self.device.ListRemoteDevices()
395 for device in devices:
396 print device,
399 devices = self.device
400 for device in devices:
401 print device,
429 print 'Failed to setup device interface: %s' % e