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

我要开发同款
匿名用户2021年04月13日
11阅读
开发技术PHP
所属分类开发工具、程序调试工具
授权协议Apache

作品详情

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

___________________________|_\||||_\|\/|/_\__|__|||_)||_|||_)||\/||||||||||__/|_|__/|||||_|||||||_||_||_|_||_||_|\__\_\|_||_|安装composerrequiresimps/mqtt-cli使用Publish$phpvendor/bin/mqttpublish--helpDescription:PublishingsimplemessagesUsage:publish[options]Options:-H,--host[=HOST]Specifythehosttoconnectto[default:"localhost"]-P,--port[=PORT]Connecttotheportspecified[default:1883]-t,--topic=TOPICTheMQTTtopiconwhichtopublishthemessage-m,--message=MESSAGESendasinglemessagefromthecommandline-i,--id[=ID]Theidtouseforthisclient[default:""]--qos[=QOS]Specifythequalityofservicetouseforthemessage,from0,1and2[default:0]--dup[=DUP]IftheDUPflagissetto0,itindicatesthatthisisthefirstoccasionthattheClientorServerhasattemptedtosendthisPUBLISHpacket[default:0]-r,--retain[=RETAIN]IftheRETAINflagissetto1inaPUBLISHpacketsentbyaClienttoaServer,theServerMUSTreplaceanyexistingretainedmessageforthistopicandstoretheApplicationMessage[default:0]-u,--username[=USERNAME]Provideausernametobeusedforauthenticatingwiththebroker-p,--pw[=PW]Provideapasswordtobeusedforauthenticatingwiththebroker-c,--clean-session[=CLEAN-SESSION]Settingthe'cleansession'flag[default:true]-l,--level=LEVELMQTTProtocollevel[default:4]-k,--keepalive[=KEEPALIVE]ThenumberofsecondsbetweensendingPINGcommandstothebrokerforthepurposesofinformingitwearestillconnectedandfunctioning[default:0]--will-topic[=WILL-TOPIC]ThetopiconwhichtosendaWill,intheeventthattheclientdisconnectsunexpectedly--will-message[=WILL-MESSAGE]Specifyamessagethatwillbestoredbythebrokerandsentoutifthisclientdisconnectsunexpectedly--will-qos[=WILL-QOS]TheQoStousefortheWill[default:0]--will-retain[=WILL-RETAIN]Ifgiven,iftheclientdisconnectsunexpectedlythemessagesentoutwillbetreatedasaretainedmessage[default:0]-S,--ssl[=SSL]EnableSSLencryption[default:false]--config-path[=CONFIG-PATH]SettingtheSwooleconfigfilepath--properties-path[=PROPERTIES-PATH]SettingthePropertiesconfigfilepath-h,--helpDisplayhelpforthegivencommand.Whennocommandisgivendisplayhelpforthelistcommand-q,--quietDonotoutputanymessage-V,--versionDisplaythisapplicationversion--ansiForceANSIoutput--no-ansiDisableANSIoutput-n,--no-interactionDonotaskanyinteractivequestion-v|vv|vvv,--verboseIncreasetheverbosityofmessages:1fornormaloutput,2formoreverboseoutputand3fordebugHelp:AnMQTTversion3.1/3.1.1/5.0clientforpublishingsimplemessagesSubscribe$phpvendor/bin/mqttsubscribe--helpDescription:SubscribingtotopicsUsage:subscribe[options]Options:-H,--host[=HOST]Specifythehosttoconnectto[default:"localhost"]-P,--port[=PORT]Connecttotheportspecified[default:1883]-i,--id[=ID]Theidtouseforthisclient[default:""]--qos=QOSSpecifythequalityofservicetouseforthemessage,from0,1and2(multiplevaluesallowed)-t,--topic=TOPICTheMQTTtopictosubscribeto(multiplevaluesallowed)-u,--username[=USERNAME]Provideausernametobeusedforauthenticatingwiththebroker-p,--pw[=PW]Provideapasswordtobeusedforauthenticatingwiththebroker-c,--clean-session[=CLEAN-SESSION]Settingthe'cleansession'flag[default:true]-l,--level=LEVELMQTTProtocollevel[default:4]-k,--keepalive[=KEEPALIVE]ThenumberofsecondsbetweensendingPINGcommandstothebrokerforthepurposesofinformingitwearestillconnectedandfunctioning[default:0]--will-topic[=WILL-TOPIC]ThetopiconwhichtosendaWill,intheeventthattheclientdisconnectsunexpectedly--will-message[=WILL-MESSAGE]Specifyamessagethatwillbestoredbythebrokerandsentoutifthisclientdisconnectsunexpectedly--will-qos[=WILL-QOS]TheQoStousefortheWill[default:0]--will-retain[=WILL-RETAIN]Ifgiven,iftheclientdisconnectsunexpectedlythemessagesentoutwillbetreatedasaretainedmessage[default:0]-S,--ssl[=SSL]EnableSSLencryption[default:false]--config-path[=CONFIG-PATH]SettingtheSwooleconfigfilepath--properties-path[=PROPERTIES-PATH]SettingthePropertiesconfigfilepath-U,--unsubscribe[=UNSUBSCRIBE]Topicsthatneedtobeunsubscribed(multiplevaluesallowed)-e,--event[=EVENT]SubscribedEventDispatcher[default:""] -n,--no-interaction          Donotaskanyinteractivequestion -v|vv|vvv,--verbose          Increasetheverbosityofmessages:1fornormaloutput,2formoreverboseoutputand3fordebug
查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论