v1.1.0
Command
mqtt-test-server < -l .. | -p .. | -c .. | -t .. | -w .. | -m .. | -s .. | -o .. >
-l string
- Language (
en(default) | cn
)
- Language (
-p string
- Define listening on IP:Port (default:
127.0.0.1:1883
) - To allow all IP addresses:
:1883
- Define listening on IP:Port (default:
-c string
- Only allow these client IDs (
,
separated)
- Only allow these client IDs (
-t string
- Only allow these topics (
,
separated)
- Only allow these topics (
-w string
- Only allow these words in message content (
,
separated)
- Only allow these words in message content (
-m path-string
- Log message to csv file
-s path-string
- Log state changes to a csv file
-o path-string
- Save log to txt/log file
-n
- Use a monochrome color scheme
-v
- Print version info
命令行参数
mqtt-test-server < -l .. | -p .. | -c .. | -t .. | -w .. | -m .. | -s .. | -o .. >
-l 字符串
- 语言 (
en(英语,默认) | cn(简体中文)
)
- 语言 (
-p string
- 指定要监听的地址和端口 (默认值:
127.0.0.1:1883
) - 如需允许所有 IP 地址:
:1883
- 指定要监听的地址和端口 (默认值:
-c 字符串
- 只允许客户端 ID 为这些的客户端(使用
,
分隔)
- 只允许客户端 ID 为这些的客户端(使用
-t 字符串
- 只接收这些主题的信息(使用
,
分隔)
- 只接收这些主题的信息(使用
-w 字符串
- 只有消息内容包含这些关键词才会处理(使用
,
分隔)
- 只有消息内容包含这些关键词才会处理(使用
-d 文件路径字符串
- 将收取到的消息保存到某个 .csv 文件
-s 文件路径字符串
- 将客户端的连接、断开、订阅、退订等行为保存到某个 .csv 文件
-o 文件路径字符串
- 将日志输出保存到某个 .txt / .log 文件
-n
- 使用单色模式输出,避免某些不支持彩色的终端输出乱码
-v
- 显示版本号等信息并退出