當前位置: 首頁>>代碼示例>>Python>>正文


Python btle.DefaultDelegate類代碼示例

本文整理匯總了Python中bluepy.btle.DefaultDelegate的典型用法代碼示例。如果您正苦於以下問題:Python DefaultDelegate類的具體用法?Python DefaultDelegate怎麽用?Python DefaultDelegate使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了DefaultDelegate類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 def __init__(self, scaling_output=True):
     DefaultDelegate.__init__(self)
     # holds samples until OpenBCIBoard claims them
     self.samples = []
     # detect gaps between packets
     self.last_id = -1
     self.packets_dropped = 0
     # save uncompressed data to compute deltas
     self.lastChannelData = [0, 0, 0, 0]
     # 18bit data got here and then accelerometer with it
     self.lastAcceleromoter = [0, 0, 0]
     # when the board is manually set in the right mode (z to start, Z to stop)
     # impedance will be measured. 4 channels + ref
     self.lastImpedance = [0, 0, 0, 0, 0]
     self.scaling_output = scaling_output
     # handling incoming ASCII messages
     self.receiving_ASCII = False
     self.time_last_ASCII = timeit.default_timer()
開發者ID:OpenBCI,項目名稱:OpenBCI_Python,代碼行數:18,代碼來源:ganglion.py

示例2: __init__

	def __init__(self, bt_addr):
		DefaultDelegate.__init__(self)
		self.bt_addr = bt_addr
開發者ID:derHeinz,項目名稱:raspberrypi-python,代碼行數:3,代碼來源:blue_scan.py

示例3: __init__

 def __init__(self):
     DefaultDelegate.__init__(self)
     self.queue = list()
開發者ID:izhaohui,項目名稱:yeelight_blue_python,代碼行數:3,代碼來源:YeelightService.py

示例4: __init__

 def __init__(self):
     DefaultDelegate.__init__(self)
     self.lastVal = 0
開發者ID:IanHarvey,項目名稱:bluepy,代碼行數:3,代碼來源:sensortag.py

示例5: __init__

 def __init__(self, nuimoOnkyo):
     DefaultDelegate.__init__(self)
     self.nuimo = nuimoOnkyo
開發者ID:RezaMahmood,項目名稱:nuimo-onkyo,代碼行數:3,代碼來源:nuimo-onkyo.py

示例6: __init__

 def __init__(self, csvlog):
     DefaultDelegate.__init__(self)
     self.csvlog = csvlog
開發者ID:vaggos2002,項目名稱:py-angel-sensor,代碼行數:3,代碼來源:main.py

示例7: __init__

 def __init__(self, container=None):
     DefaultDelegate.__init__(self)
     self.__container = container
開發者ID:jakubszlendak,項目名稱:robot-ble-localization,代碼行數:3,代碼來源:scan.py

示例8: __init__

 def __init__(self, nuimo, strip):
     DefaultDelegate.__init__(self)
     self.nuimo = nuimo
     self.strip = strip
開發者ID:popoklopsi,項目名稱:Nuimo-RaspberryPi-LedStrip,代碼行數:4,代碼來源:NuimoLedStrip.py

示例9: __init__

 def __init__(self, opts):
     DefaultDelegate.__init__(self)
     self.opts = opts
開發者ID:4n6strider,項目名稱:bleah,代碼行數:3,代碼來源:scan.py

示例10: __init__

 def __init__(self, scanner, notify):
     DefaultDelegate.__init__(self)
     self.notify = notify
     self.scanner = scanner
開發者ID:brendonparker,項目名稱:nuimo-py-web,代碼行數:4,代碼來源:nuimo.py

示例11: __init__

 def __init__(self, params):
     DefaultDelegate.__init__(self)
開發者ID:kiminseob,項目名稱:LG-smart-ThinkQ,代碼行數:2,代碼來源:bluedata.py

示例12: __init__

 def __init__(self, params):
   DefaultDelegate.__init__(self)
   print "Info, DefaultDelegate set", params
開發者ID:digitalhack,項目名稱:dhSensorTag2015,代碼行數:3,代碼來源:testKeys.py

示例13: __init__

 def __init__(self):
     DefaultDelegate.__init__(self)
     self.devices = []
開發者ID:Betree,項目名稱:magicblue,代碼行數:3,代碼來源:magicblueshell.py

示例14: __init__

 def __init__(self, nuimoTimer):
     DefaultDelegate.__init__(self)
     self.nuimoTimer = nuimoTimer
開發者ID:RezaMahmood,項目名稱:nuimo-timer,代碼行數:3,代碼來源:nuimo-timer.py

示例15: __init__

 def __init__(self):
     DefaultDelegate.__init__(self)
開發者ID:uname,項目名稱:blepi,代碼行數:2,代碼來源:ScanDelegate.py


注:本文中的bluepy.btle.DefaultDelegate類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。