PHPMQTT-CLI PHPMQTT 命令行工具开源项目

我要开发同款
匿名用户2021年04月13日
73阅读

技术信息

开源地址
https://gitee.com/phpmqtt/mqtt-cli
授权协议
Apache

作品详情

PHPMQTT-CLI是基于PHPMQTT提供的命令行工具,支持发布和订阅。

___________________________|_\||||_\|\/|/_\__|__|||_)||_|||_)||\/||||||||||__/|_|__/|||||_|||||||_||_||_|_||_||_|\__\_\|_||_|安装composerrequiresimps/mqtt-cli使用Publish$phpvedor/bi/mqttpublish--helpDescriptio:PublishigsimplemessagesUsage:publish[optios]Optios:-H,--host[=HOST]Specifythehosttocoectto[default:"localhost"]-P,--port[=PORT]Coecttotheportspecified[default:1883]-t,--topic=TOPICTheMQTTtopicowhichtopublishthemessage-m,--message=MESSAGESedasiglemessagefromthecommadlie-i,--id[=ID]Theidtouseforthiscliet[default:""]--qos[=QOS]Specifythequalityofservicetouseforthemessage,from0,1ad2[default:0]--dup[=DUP]IftheDUPflagissetto0,itidicatesthatthisisthefirstoccasiothattheClietorServerhasattemptedtosedthisPUBLISHpacket[default:0]-r,--retai[=RETAIN]IftheRETAINflagissetto1iaPUBLISHpacketsetbyaCliettoaServer,theServerMUSTreplaceayexistigretaiedmessageforthistopicadstoretheApplicatioMessage[default:0]-u,--userame[=USERNAME]Provideauserametobeusedforautheticatigwiththebroker-p,--pw[=PW]Provideapasswordtobeusedforautheticatigwiththebroker-c,--clea-sessio[=CLEAN-SESSION]Settigthe'cleasessio'flag[default:true]-l,--level=LEVELMQTTProtocollevel[default:4]-k,--keepalive[=KEEPALIVE]TheumberofsecodsbetweesedigPINGcommadstothebrokerforthepurposesofiformigitwearestillcoectedadfuctioig[default:0]--will-topic[=WILL-TOPIC]ThetopicowhichtosedaWill,itheevetthattheclietdiscoectsuexpectedly--will-message[=WILL-MESSAGE]Specifyamessagethatwillbestoredbythebrokeradsetoutifthisclietdiscoectsuexpectedly--will-qos[=WILL-QOS]TheQoStousefortheWill[default:0]--will-retai[=WILL-RETAIN]Ifgive,iftheclietdiscoectsuexpectedlythemessagesetoutwillbetreatedasaretaiedmessage[default:0]-S,--ssl[=SSL]EableSSLecryptio[default:false]--cofig-path[=CONFIG-PATH]SettigtheSwoolecofigfilepath--properties-path[=PROPERTIES-PATH]SettigthePropertiescofigfilepath-h,--helpDisplayhelpforthegivecommad.Wheocommadisgivedisplayhelpforthelistcommad-q,--quietDootoutputaymessage-V,--versioDisplaythisapplicatioversio--asiForceANSIoutput--o-asiDisableANSIoutput-,--o-iteractioDootaskayiteractivequestio-v|vv|vvv,--verboseIcreasetheverbosityofmessages:1forormaloutput,2formoreverboseoutputad3fordebugHelp:AMQTTversio3.1/3.1.1/5.0clietforpublishigsimplemessagesSubscribe$phpvedor/bi/mqttsubscribe--helpDescriptio:SubscribigtotopicsUsage:subscribe[optios]Optios:-H,--host[=HOST]Specifythehosttocoectto[default:"localhost"]-P,--port[=PORT]Coecttotheportspecified[default:1883]-i,--id[=ID]Theidtouseforthiscliet[default:""]--qos=QOSSpecifythequalityofservicetouseforthemessage,from0,1ad2(multiplevaluesallowed)-t,--topic=TOPICTheMQTTtopictosubscribeto(multiplevaluesallowed)-u,--userame[=USERNAME]Provideauserametobeusedforautheticatigwiththebroker-p,--pw[=PW]Provideapasswordtobeusedforautheticatigwiththebroker-c,--clea-sessio[=CLEAN-SESSION]Settigthe'cleasessio'flag[default:true]-l,--level=LEVELMQTTProtocollevel[default:4]-k,--keepalive[=KEEPALIVE]TheumberofsecodsbetweesedigPINGcommadstothebrokerforthepurposesofiformigitwearestillcoectedadfuctioig[default:0]--will-topic[=WILL-TOPIC]ThetopicowhichtosedaWill,itheevetthattheclietdiscoectsuexpectedly--will-message[=WILL-MESSAGE]Specifyamessagethatwillbestoredbythebrokeradsetoutifthisclietdiscoectsuexpectedly--will-qos[=WILL-QOS]TheQoStousefortheWill[default:0]--will-retai[=WILL-RETAIN]Ifgive,iftheclietdiscoectsuexpectedlythemessagesetoutwillbetreatedasaretaiedmessage[default:0]-S,--ssl[=SSL]EableSSLecryptio[default:false]--cofig-path[=CONFIG-PATH]SettigtheSwoolecofigfilepath--properties-path[=PROPERTIES-PATH]SettigthePropertiescofigfilepath-U,--usubscribe[=UNSUBSCRIBE]Topicsthateedtobeusubscribed(multiplevaluesallowed)-e,--evet[=EVENT]SubscribedEvetDispatcher[default:""] -,--o-iteractio          Dootaskayiteractivequestio -v|vv|vvv,--verbose          Icreasetheverbosityofmessages:1forormaloutput,2formoreverboseoutputad3fordebug

功能介绍

PHPMQTT-CLI是基于PHPMQTT提供的命令行工具,支持发布和订阅。 ____ _ _ ____ __ __ ___ _____ _____
| _ \| | | | ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论