update mqtt

This commit is contained in:
lyon 2022-11-12 23:28:55 +08:00
parent 7d90370d4c
commit b980fd4710
4 changed files with 10 additions and 10 deletions

View File

@ -9,5 +9,8 @@ void _mqtt__MQTT___init__(PikaObj* self,
char* version,
char* ca,
int keepalive) {
}
__platform_printf(
"ip: %s, port: %d, clinetID: %s, username: %s, password: %s, version: "
"%s, ca: %s, keepalive: %d\r\n",
ip, port, clinetID, username, password, version, ca, keepalive);
}

View File

@ -11,9 +11,6 @@ class MQTT(_mqtt._MQTT):
version='3.1.1',
ca='',
keepalive=60):
print('MQTT init')
print(port)
print('ip:', ip)
super().__init__(ip, port, clinetID,
username, password, version,
ca, keepalive)

View File

@ -11,9 +11,6 @@ class MQTT(_mqtt._MQTT):
version='3.1.1',
ca='',
keepalive=60):
print('MQTT init')
print(port)
print('ip:', ip)
super().__init__(ip, port, clinetID,
username, password, version,
ca, keepalive)

View File

@ -9,5 +9,8 @@ void _mqtt__MQTT___init__(PikaObj* self,
char* version,
char* ca,
int keepalive) {
}
__platform_printf(
"ip: %s, port: %d, clinetID: %s, username: %s, password: %s, version: "
"%s, ca: %s, keepalive: %d\r\n",
ip, port, clinetID, username, password, version, ca, keepalive);
}