{"id":74070,"date":"2024-01-02T10:42:37","date_gmt":"2024-01-02T02:42:37","guid":{"rendered":"\/\/www.viralrail.com\/?p=74070"},"modified":"2024-01-02T10:42:37","modified_gmt":"2024-01-02T02:42:37","slug":"srljmgjgxdwlwtx","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/74070.html","title":{"rendered":"\u6df1\u5165\u7406\u89e3MQTT Server\uff1a\u6784\u5efa\u9ad8\u6548\u7684\u7269\u8054\u7f51\u901a\u4fe1"},"content":{"rendered":"

  MQTT Server\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTT Server\u7684\u539f\u7406\u3001\u5e94\u7528\u548c\u4f18\u52bf\uff0c\u4ee5\u53ca\u5982\u4f55\u6709\u6548\u5730\u5229\u7528MQTT Server\u6784\u5efa\u9ad8\u6548\u7684\u7269\u8054\u7f51\u901a\u4fe1\u7cfb\u7edf<\/a>\u3002<\/p>\n

MQTT Server\u539f\u7406\u89e3\u6790<\/h2>\n

  MQTT (Message Queuing Telemetry Transport) \u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u534f\u8bae\uff0c\u6700\u521d\u7531IBM\u5f00\u53d1\u3002MQTT Server\u662f\u5b9e\u73b0\u8be5\u534f\u8bae\u7684\u670d\u52a1\u5668\u7aef\u7a0b\u5e8f\uff0c\u8d1f\u8d23\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\u5e76\u5c06\u5176\u8f6c\u53d1\u7ed9\u8ba2\u9605\u4e86\u76f8\u5173\u4e3b\u9898\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n

  MQTT\u534f\u8bae\u6838\u5fc3\u7279\u70b9<\/h3>\n

  MQTT\u534f\u8bae\u4e0e\u4f20\u7edf\u7684HTTP\u534f\u8bae\u76f8\u6bd4\uff0c\u5177\u6709\u8f7b\u91cf\u7ea7\u3001\u4f4e\u80fd\u8017\u3001\u53ef\u9760\u6027\u9ad8\u7b49\u7279\u70b9\uff0c\u9002\u5408\u4e8e\u7269\u8054\u7f51\u8bbe\u5907<\/a>\u4e4b\u95f4\u7684\u5b9e\u65f6\u901a\u4fe1\u3002\u5176\u91c7\u7528\u57fa\u4e8eTCP\u7684\u8fde\u63a5\u673a\u5236\uff0c\u5177\u5907QoS\u7ea7\u522b\u3001\u4fdd\u7559\u6d88\u606f\u7b49\u7279\u6027\uff0c\u4fdd\u8bc1\u4e86\u7075\u6d3b\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n

  MQTT Server\u67b6\u6784\u4e0e\u5de5\u4f5c\u539f\u7406<\/h3>\n

  MQTT Server\u901a\u5e38\u91c7\u7528broker\uff08\u4ee3\u7406\uff09-client\uff08\u5ba2\u6237\u7aef\uff09\u67b6\u6784\u3002Broker\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\uff0c\u6839\u636e\u8ba2\u9605\u5173\u7cfb\u5c06\u6d88\u606f\u5206\u53d1\u7ed9\u76f8\u5e94\u7684\u5ba2\u6237\u7aef\uff0c\u4ece\u800c\u5b9e\u73b0\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u4e0b\u7684\u6d88\u606f\u4f20\u8f93\u3002\u5ba2\u6237\u7aef\u53ef\u4ee5\u662f\u4f20\u611f\u5668\u3001\u63a7\u5236\u5668\u3001\u76d1\u63a7\u7cfb\u7edf\u7b49\u8bbe\u5907\u3002<\/p>\n

\u4e3a\u4f55\u63a8\u8350\u4f7f\u7528MQTT Server<\/h2>\n

  MQTT Server\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u6548\u3001\u53ef\u9760\u7684\u7269\u8054\u7f51\u901a\u4fe1\u534f\u8bae\uff0c\u5177\u6709\u8bb8\u591a\u4f18\u52bf\uff0c\u56e0\u6b64\u5728\u7269\u8054\u7f51\u5e94\u7528\u4e2d\u5907\u53d7\u63a8\u5d07\u3002<\/p>\n

  \u4f4e\u5e26\u5bbd\u4e0e\u4f4e\u529f\u8017\u7279\u6027<\/h3>\n

  MQTT\u534f\u8bae\u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u4f7f\u5f97\u5176\u5728\u5e26\u5bbd\u6709\u9650\u3001\u8bbe\u5907\u529f\u8017\u654f\u611f\u7684\u7269\u8054\u7f51\u573a\u666f\u4e0b\u5177\u5907\u4e86\u72ec\u7279\u4f18\u52bf\uff0c\u80fd\u591f\u5b9e\u73b0\u4f4e\u80fd\u8017\u3001\u957f\u65f6\u95f4\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n

  \u7075\u6d3b\u7684\u6d88\u606f\u4f20\u9012\u673a\u5236<\/h3>\n

  \u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u4f20\u9012\u673a\u5236\u4f7f\u5f97MQTT Server\u80fd\u591f\u5b9e\u73b0\u5f02\u6b65\u901a\u4fe1\uff0c\u652f\u6301\u591a\u5bf9\u591a\u7684\u6d88\u606f\u4f20\u9012\u65b9\u5f0f\uff0c\u9002\u5408\u4e8e\u5404\u79cd\u7269\u8054\u7f51\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002<\/p>\n

  \u5b89\u5168\u6027\u4e0e\u53ef\u9760\u6027<\/h3>\n

  MQTT\u534f\u8bae\u652f\u6301TLS\/SSL\u4f20\u8f93\u534f\u8bae\u548c\u7528\u6237\u540d\u5bc6\u7801\u8ba4\u8bc1\uff0c\u4fdd\u8bc1\u4e86\u6d88\u606f\u4f20\u9012\u7684\u5b89\u5168\u6027\uff0c\u540c\u65f6\u901a\u8fc7QoS<\/a>\u7ea7\u522b\u786e\u4fdd\u6d88\u606f\u7684\u53ef\u9760\u6027\u3002<\/p>\n

\u7ed3\u8bed<\/h2>\n

  MQTT Server\u4f5c\u4e3a\u7269\u8054\u7f51\u901a\u4fe1\u7684\u5173\u952e\u7ec4\u6210\u90e8\u5206\uff0c\u4e3a\u7269\u8054\u7f51\u5e94\u7528\u63d0\u4f9b\u4e86\u4e00\u79cd\u9ad8\u6548\u3001\u53ef\u9760\u7684\u901a\u4fe1\u65b9\u5f0f\u3002<\/strong>\u901a\u8fc7\u6df1\u5165\u7406\u89e3MQTT Server\u7684\u539f\u7406\u548c\u4f18\u52bf\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u5229\u7528\u5176\u7279\u6027\u6784\u5efa\u51fa\u9ad8\u6548\u7684\u7269\u8054\u7f51\u7cfb\u7edf\uff0c\u63a8\u52a8\u7269\u8054\u7f51\u6280\u672f\u7684\u53d1\u5c55\u548c\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MQTTServer\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTTServer\u7684\u539f\u7406\u3001\u5e94\u7528\u548c\u4f18\u52bf\uff0c\u4ee5\u53ca\u5982\u4f55\u6709\u6548\u5730\u5229\u7528MQTTServer\u6784<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[40],"class_list":["post-74070","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-wlw"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/74070"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=74070"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/74070\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=74070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=74070"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=74070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}