資料介紹
軟件簡(jiǎn)介
PHPMQTT-CLI是基于PHPMQTT提供的命令行工具,支持發(fā)布和訂閱。
____ _ _ ____ __ __ ___ _____ _____
| _ \| | | | _ \| \/ |/ _ \_ _|_ _|
| |_) | |_| | |_) | |\/| | | | || | | |
| __/| _ | __/| | | | |_| || | | |
|_| |_| |_|_| |_| |_|\__\_\|_| |_|
安裝
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工具文檔:命令行參考指南
- Emulex命令行協(xié)議(CLP)規(guī)范
- OneCommand Manager命令行界面用戶手冊(cè)
- Emulex OneCommand命令行接口用戶指南 12.2版
- Linux命令行與shell腳本編寫 4次下載
- 新的開源命令行工具west
- K210命令行開發(fā)環(huán)境搭建指南 5次下載
- Anyshortcut-cli Rust編寫的命令行工具
- mini shell命令行調(diào)試工具(單片機(jī)、c語(yǔ)言)
- Git常見的誤區(qū)和命令行工具等綜述 0次下載
- Linux桌面系統(tǒng)初級(jí)教程之Shell命令行操作的資料概述 18次下載
- CMD的命令行高級(jí)教程 30次下載
- 最全面StoneOS命令行用戶手冊(cè) 13次下載
- 博達(dá)環(huán)網(wǎng)配置命令行 0次下載
- cmd網(wǎng)絡(luò)經(jīng)典命令行
- 用于分析可執(zhí)行程序和內(nèi)存轉(zhuǎn)儲(chǔ)的命令行工具介紹 2.1k次閱讀
- 2Printer命令行工具簡(jiǎn)述 1.7k次閱讀
- 在命令行下配置防火墻的基礎(chǔ)上網(wǎng)步驟 1.9k次閱讀
- Fcoder從命令行批量轉(zhuǎn)換為TIFF 1.6k次閱讀
- 在命令行中記筆記的神器-Jrnl 2.4k次閱讀
- Golang基于flag庫(kù)實(shí)現(xiàn)一個(gè)命令行工具 2k次閱讀
- uvm命令行傳遞參數(shù)的小技巧 7.5k次閱讀
- 推薦這七大有趣和方便的終端/命令行界面工具 3.3k次閱讀
- 維基鏈的命令行是如何高效快速的對(duì)維基鏈節(jié)點(diǎn)進(jìn)行操作的 1.4k次閱讀
- 巧妙的Linux命令行技巧能讓你提高效率 3.3k次閱讀
- 能提高效率的Linux命令行技巧 2.7k次閱讀
- 監(jiān)控網(wǎng)絡(luò)使用情況的Linux命令行工具 5.6k次閱讀
- 通過(guò)這10個(gè)基礎(chǔ)命令開始掌握Linux命令行 4.7k次閱讀
- 實(shí)用 Linux 命令行使用技巧集錦 5.3k次閱讀
- 監(jiān)控jvm常用的5個(gè)命令行工具 6.4k次閱讀
下載排行
本周
- 1新一代網(wǎng)絡(luò)可視化(NPB 2.0)
- 3.40 MB | 1次下載 | 免費(fèi)
- 2冷柜-電氣控制系統(tǒng)講解
- 13.68 MB | 1次下載 | 10 積分
- 3MDD品牌三極管MMBT3906數(shù)據(jù)手冊(cè)
- 2.33 MB | 次下載 | 免費(fèi)
- 4MDD品牌三極管S9012數(shù)據(jù)手冊(cè)
- 2.62 MB | 次下載 | 免費(fèi)
- 5LAT1218 如何選擇和設(shè)置外部晶體適配 BlueNRG-X
- 0.60 MB | 次下載 | 3 積分
- 6LAT1216 Blue NRG-1/2 系列芯片 Flash 操作與 BLE 事件的互斥處理
- 0.89 MB | 次下載 | 3 積分
- 7收音環(huán)繞擴(kuò)音機(jī) AVR-1507手冊(cè)
- 2.50 MB | 次下載 | 免費(fèi)
- 8MS1000TA 超聲波測(cè)量模擬前端芯片技術(shù)手冊(cè)
- 0.60 MB | 次下載 | 免費(fèi)
本月
- 1愛華AIWA HS-J202維修手冊(cè)
- 3.34 MB | 37次下載 | 免費(fèi)
- 2PC5502負(fù)載均流控制電路數(shù)據(jù)手冊(cè)
- 1.63 MB | 23次下載 | 免費(fèi)
- 3NB-IoT芯片廠商的資料說(shuō)明
- 0.31 MB | 22次下載 | 1 積分
- 4UWB653Pro USB口測(cè)距通信定位模塊規(guī)格書
- 838.47 KB | 5次下載 | 免費(fèi)
- 5蘇泊爾DCL6907(即CHK-S007)單芯片電磁爐原理圖資料
- 0.04 MB | 4次下載 | 1 積分
- 6蘇泊爾DCL6909(即CHK-S009)單芯片電磁爐原理圖資料
- 0.08 MB | 2次下載 | 1 積分
- 7100W準(zhǔn)諧振反激式恒流電源電路圖資料
- 0.09 MB | 2次下載 | 1 積分
- 8FS8025B USB的PD和OC快充協(xié)議電壓誘騙控制器IC技術(shù)手冊(cè)
- 1.81 MB | 1次下載 | 免費(fèi)
總榜
- 1matlab軟件下載入口
- 未知 | 935137次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計(jì)
- 1.48MB | 420064次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233089次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191439次下載 | 10 積分
- 5十天學(xué)會(huì)AVR單片機(jī)與C語(yǔ)言視頻教程 下載
- 158M | 183353次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81602次下載 | 10 積分
- 7Keil工具M(jìn)DK-Arm免費(fèi)下載
- 0.02 MB | 73822次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65991次下載 | 10 積分
電子發(fā)燒友App





創(chuàng)作
發(fā)文章
發(fā)帖
提問
發(fā)資料
發(fā)視頻
上傳資料賺積分
評(píng)論