mqtt_client_shell.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:python-mqtt-client-shell 作者: bapowell 项目源码 文件源码
def __init__(self, client_id="", clean_session=True, protocol=None, transport="tcp"):
        """Initialize ClientArgs with default or passed-in values."""
        self._default_client_id = ("paho-" + str(random.randrange(1000, 10000)) + "-" + socket.gethostname())[:23]
        self.client_id = client_id
        self.clean_session = clean_session
        self._default_protocol = mqtt.MQTTv311
        self.protocol = protocol
        self.transport = transport
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号