kopia lustrzana https://github.com/Yakifo/amqtt
cleanup utils.gen_client_id
rodzic
9069f9bc14
commit
14b54d830f
|
@ -2,6 +2,7 @@
|
||||||
#
|
#
|
||||||
# See the file license.txt for copying permission.
|
# See the file license.txt for copying permission.
|
||||||
import logging
|
import logging
|
||||||
|
import random
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
@ -31,13 +32,8 @@ def format_client_message(session=None, address=None, port=None):
|
||||||
return "(unknown client)"
|
return "(unknown client)"
|
||||||
|
|
||||||
|
|
||||||
def gen_client_id():
|
def gen_client_id() -> str:
|
||||||
"""
|
"""Generates random client ID"""
|
||||||
Generates random client ID
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
import random
|
|
||||||
|
|
||||||
gen_id = "hbmqtt/"
|
gen_id = "hbmqtt/"
|
||||||
|
|
||||||
for i in range(7, 23):
|
for i in range(7, 23):
|
||||||
|
|
Ładowanie…
Reference in New Issue