2022-11-12 23:28:55 +08:00

17 lines
439 B
Python

import _mqtt
class MQTT(_mqtt._MQTT):
def __init__(self,
ip: str,
port=1883,
clinetID='mac',
username='',
password='',
version='3.1.1',
ca='',
keepalive=60):
super().__init__(ip, port, clinetID,
username, password, version,
ca, keepalive)