add clientid manag
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import paho.mqtt.client as mqtt
|
||||
import paho.mqtt.publish as publish
|
||||
import subprocess
|
||||
import argparse
|
||||
import requests
|
||||
@@ -68,7 +69,7 @@ class CurrentClients:
|
||||
|
||||
def get_client_list(args, auth):
|
||||
try:
|
||||
mqtt.publish.single(args.pub_topic, '{"commands":[{"command":"listClients"}]}', hostname=args.host, port=args.port, auth=auth)
|
||||
publish.single(args.pub_topic, '{"commands":[{"command":"listClients"}]}', hostname=args.host, port=args.port, auth=auth)
|
||||
except Exception as e:
|
||||
logger.error(f"Error publishing client list request: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user