本文整理汇总了Python中messenger.Messenger.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Messenger.__init__方法的具体用法?Python Messenger.__init__怎么用?Python Messenger.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类messenger.Messenger
的用法示例。
在下文中一共展示了Messenger.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, appkey, alias, customid, gpio_num):
self.__logger = logging.getLogger('power_plug.PowerPlug')
self.__logger.debug('init')
Messenger.__init__(self, appkey, alias, customid)
self.gpio_num = gpio_num
GPIO.setup(self.gpio_num, GPIO.OUT)
示例2: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, appkey, alias, customid, topic, transfer, zigbee_addr):
self.__logger = logging.getLogger('zigbee_coordinator.Proxy')
self.__logger.debug('init')
Messenger.__init__(self, appkey, alias, customid)
self.transfer = transfer
self.topic = topic
self.zigbee_addr = zigbee_addr
示例3: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, appkey, alias, customid, file, presence, like):
self.__logger = logging.getLogger('stat.Stat')
self.__logger.debug('init')
Messenger.__init__(self, appkey, alias, customid)
self.file = file
self.data = {}
self.data['presence'] = presence
self.data['like'] = like
if presence != 0 or like != 0:
self.write_data()
else:
self.read_data()
示例4: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, appkey, alias, customid, topic, transfer):
self.__logger = logging.getLogger('serial_gateway.Proxy')
self.__logger.debug('init')
Messenger.__init__(self, appkey, alias, customid)
self.transfer = transfer
self.topic = topic
示例5: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, name):
Messenger.__init__(self)
self.name = name
self.destinations = {}
return
示例6: __init__
# 需要导入模块: from messenger import Messenger [as 别名]
# 或者: from messenger.Messenger import __init__ [as 别名]
def __init__(self, topic, alias, cmd):
self.__logger = logging.getLogger('get_status.Status')
self.__logger.info('init')
Messenger.__init__(self, APPKEY, 'status', 'status')
self.topic = topic
self.alias = alias
self.cmd = cmd