資料介紹
軟件簡介
PHPMQTT-CLI是基于PHPMQTT提供的命令行工具,支持發布和訂閱。
____ _ _ ____ __ __ ___ _____ _____
| _ \| | | | _ \| \/ |/ _ \_ _|_ _|
| |_) | |_| | |_) | |\/| | | | || | | |
| __/| _ | __/| | | | |_| || | | |
|_| |_| |_|_| |_| |_|\__\_\|_| |_|
安裝
composer require simps/mqtt-cli
使用
Publish
$ php vendor/bin/mqtt publish --help
Description:
Publishing simple messages
Usage:
publish [options]
Options:
-H, --host[=HOST] Specify the host to connect to [default: "localhost"]
-P, --port[=PORT] Connect to the port specified [default: 1883]
-t, --topic=TOPIC The MQTT topic on which to publish the message
-m, --message=MESSAGE Send a single message from the command line
-i, --id[=ID] The id to use for this client [default: ""]
--qos[=QOS] Specify the quality of service to use for the message, from 0, 1 and 2 [default: 0]
--dup[=DUP] If the DUP flag is set to 0, it indicates that this is the first occasion that the Client or Server has attempted to send this PUBLISH packet [default: 0]
-r, --retain[=RETAIN] If the RETAIN flag is set to 1 in a PUBLISH packet sent by a Client to a Server, the Server MUST replace any existing retained message for this topic and store the Application Message [default: 0]
-u, --username[=USERNAME] Provide a username to be used for authenticating with the broker
-p, --pw[=PW] Provide a password to be used for authenticating with the broker
-c, --clean-session[=CLEAN-SESSION] Setting the 'clean session' flag [default: true]
-l, --level=LEVEL MQTT Protocol level [default: 4]
-k, --keepalive[=KEEPALIVE] The number of seconds between sending PING commands to the broker for the purposes of informing it we are still connected and functioning [default: 0]
--will-topic[=WILL-TOPIC] The topic on which to send a Will, in the event that the client disconnects unexpectedly
--will-message[=WILL-MESSAGE] Specify a message that will be stored by the broker and sent out if this client disconnects unexpectedly
--will-qos[=WILL-QOS] The QoS to use for the Will [default: 0]
--will-retain[=WILL-RETAIN] If given, if the client disconnects unexpectedly the message sent out will be treated as a retained message [default: 0]
-S, --ssl[=SSL] Enable SSL encryption [default: false]
--config-path[=CONFIG-PATH] Setting the Swoole config file path
--properties-path[=PROPERTIES-PATH] Setting the Properties config file path
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
An MQTT version 3.1/3.1.1/5.0 client for publishing simple messages
Subscribe
$ php vendor/bin/mqtt subscribe --help
Description:
Subscribing to topics
Usage:
subscribe [options]
Options:
-H, --host[=HOST] Specify the host to connect to [default: "localhost"]
-P, --port[=PORT] Connect to the port specified [default: 1883]
-i, --id[=ID] The id to use for this client [default: ""]
--qos=QOS Specify the quality of service to use for the message, from 0, 1 and 2 (multiple values allowed)
-t, --topic=TOPIC The MQTT topic to subscribe to (multiple values allowed)
-u, --username[=USERNAME] Provide a username to be used for authenticating with the broker
-p, --pw[=PW] Provide a password to be used for authenticating with the broker
-c, --clean-session[=CLEAN-SESSION] Setting the 'clean session' flag [default: true]
-l, --level=LEVEL MQTT Protocol level [default: 4]
-k, --keepalive[=KEEPALIVE] The number of seconds between sending PING commands to the broker for the purposes of informing it we are still connected and functioning [default: 0]
--will-topic[=WILL-TOPIC] The topic on which to send a Will, in the event that the client disconnects unexpectedly
--will-message[=WILL-MESSAGE] Specify a message that will be stored by the broker and sent out if this client disconnects unexpectedly
--will-qos[=WILL-QOS] The QoS to use for the Will [default: 0]
--will-retain[=WILL-RETAIN] If given, if the client disconnects unexpectedly the message sent out will be treated as a retained message [default: 0]
-S, --ssl[=SSL] Enable SSL encryption [default: false]
--config-path[=CONFIG-PATH] Setting the Swoole config file path
--properties-path[=PROPERTIES-PATH] Setting the Properties config file path
-U, --unsubscribe[=UNSUBSCRIBE] Topics that need to be unsubscribed (multiple values allowed)
-e, --event[=EVENT] Subscribed EventDispatcher [default: ""]
? -n, --no-interaction ? ? ? ? ? ? ? ? ? ? Do not ask any interactive question
? -v|vv|vvv, --verbose ? ? ? ? ? ? ? ? ? ? Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
下載該資料的人也在下載
下載該資料的人還在閱讀
更多 >
- PetaLinux工具文檔:命令行參考指南 0次下載
- Emulex命令行協議(CLP)規范 0次下載
- Linux命令行與shell腳本編寫 4次下載
- 新的開源命令行工具west 0次下載
- K210命令行開發環境搭建指南 5次下載
- Anyshortcut-cli Rust編寫的命令行工具 0次下載
- mini shell命令行調試工具(單片機、c語言) 9次下載
- Git常見的誤區和命令行工具等綜述 0次下載
- Linux命令行和shell腳本編程寶典PDF版電子書免費下載 0次下載
- Linux桌面系統初級教程之Shell命令行操作的資料概述 18次下載
- Linux圖形界面的原理與構成和Linux命令行和vi編輯器的使用手冊 6次下載
- CMD的命令行高級教程 30次下載
- 最全面StoneOS命令行用戶手冊 13次下載
- 博達環網配置命令行 0次下載
- cmd網絡經典命令行 36次下載
- 用于分析可執行程序和內存轉儲的命令行工具介紹 591次閱讀
- 2Printer命令行工具簡述 418次閱讀
- 在命令行下配置防火墻的基礎上網步驟 469次閱讀
- Fcoder從命令行批量轉換為TIFF 392次閱讀
- 在命令行中記筆記的神器-Jrnl 1017次閱讀
- Golang基于flag庫實現一個命令行工具 955次閱讀
- uvm命令行傳遞參數的小技巧 4196次閱讀
- 推薦這七大有趣和方便的終端/命令行界面工具 2496次閱讀
- 維基鏈的命令行是如何高效快速的對維基鏈節點進行操作的 848次閱讀
- 巧妙的Linux命令行技巧能讓你提高效率 2604次閱讀
- 能提高效率的Linux命令行技巧 1784次閱讀
- 監控網絡使用情況的Linux命令行工具 4403次閱讀
- 通過這10個基礎命令開始掌握Linux命令行 4045次閱讀
- 實用 Linux 命令行使用技巧集錦 4459次閱讀
- 監控jvm常用的5個命令行工具 5543次閱讀
下載排行
本周
- 1RSA306B頻譜分析儀技術資料匯總
- 未知 | 204次下載 | 免費
- 2RSA500A系列便攜式頻譜分析儀技術盤點
- 未知 | 157次下載 | 免費
- 3高幅度波形/ 函數發生器汽車、半導體、科學和工業應用測量剖析
- 未知 | 141次下載 | 免費
- 4基于PT100的溫度測量系統設計
- 0.4 MB | 71次下載 | 1 積分
- 5RF能量的治療與美容分析
- 0.6 MB | 55次下載 | 1 積分
- 6FANUC第四軸的開通及設定方法
- 0.4 MB | 33次下載 | 1 積分
- 7PT100鉑熱電阻測溫實驗
- 0.4 MB | 32次下載 | 1 積分
- 8直流無刷電機驅動與失速電流限制參考設計
- 10.6 MB | 30次下載 | 1 積分
本月
- 1RSA306B頻譜分析儀技術資料匯總
- 未知 | 204次下載 | 免費
- 2RSA500A系列便攜式頻譜分析儀技術盤點
- 未知 | 157次下載 | 免費
- 3高幅度波形/ 函數發生器汽車、半導體、科學和工業應用測量剖析
- 未知 | 141次下載 | 免費
- 4基于PT100的溫度測量系統設計
- 0.4 MB | 71次下載 | 1 積分
- 5RF能量的治療與美容分析
- 0.6 MB | 55次下載 | 1 積分
- 6FANUC第四軸的開通及設定方法
- 0.4 MB | 33次下載 | 1 積分
- 7PT100鉑熱電阻測溫實驗
- 0.4 MB | 32次下載 | 1 積分
- 8直流無刷電機驅動與失速電流限制參考設計
- 10.6 MB | 30次下載 | 1 積分
總榜
- 1matlab軟件下載入口
- 未知 | 935094次下載 | 免費
- 2開源硬件-PMP21529.1-4 開關降壓/升壓雙向直流/直流轉換器 PCB layout 設計
- 1.48MB | 420052次下載 | 免費
- 3Altium DXP2002下載入口
- 未知 | 233068次下載 | 免費
- 4電路仿真軟件multisim 10.0免費下載
- 340992 | 191334次下載 | 免費
- 5十天學會AVR單片機與C語言視頻教程 下載
- 158M | 183317次下載 | 免費
- 6labview8.5下載
- 未知 | 81569次下載 | 免費
- 7Keil工具MDK-Arm免費下載
- 0.02 MB | 73795次下載 | 免費
- 8NI LabVIEW中實現3D視覺的工具和技術
- 未知 | 70088次下載 | 免費
評論
查看更多