{"id":23151,"date":"2023-08-29T22:49:30","date_gmt":"2023-08-29T14:49:30","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=23151"},"modified":"2024-06-30T13:15:15","modified_gmt":"2024-06-30T05:15:15","slug":"mxycssjzdcd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/23151.html","title":{"rendered":"MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u6700\u5927\u957f\u5ea6"},"content":{"rendered":"\n

\u3000\u3000MQTT<\/a>(Message Queuing Telemetry Transport)\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u53d1\u5e03\/\u8ba2\u9605\u5f0f\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u3002\u5728\u4f7f\u7528MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e86\u89e3\u5176\u6700\u5927\u4f20\u8f93\u6570\u636e\u957f\u5ea6\u5bf9\u4e8e\u8bbe\u8ba1\u548c\u4f18\u5316\u5e94\u7528\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u4ee5\u53ca\u5176\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u610f\u4e49\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e00\u3001MQTT\u534f\u8bae\u7b80\u4ecb<\/h2>\n\n\n\n

\u3000\u3000MQTT\u662f\u4e00\u79cd\u57fa\u4e8e\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0c\u6700\u521d\u7531IBM\u5f00\u53d1\uff0c\u7528\u4e8e\u8fde\u63a5\u53d7\u9650\u7684\u8bbe\u5907\u548c\u4f4e\u5e26\u5bbd\u7f51\u7edc\u3002MQTT\u534f\u8bae\u5177\u6709\u8f7b\u91cf\u7ea7\u3001\u4f4e\u529f\u8017\u3001\u53ef\u9760\u6027\u9ad8\u7b49\u7279\u70b9\uff0c\u56e0\u6b64\u5728\u7269\u8054\u7f51\u9886\u57df\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/strong>MQTT\u534f\u8bae\u4f7f\u7528TCP\/IP\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\uff0c\u652f\u6301\u591a\u79cd\u6d88\u606f\u8d28\u91cf\u7b49\u7ea7\uff0c\u5e76\u4e14\u5177\u6709\u8f83\u4f4e\u7684\u7f51\u7edc\u5f00\u9500\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e8c\u3001MQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6<\/h2>\n\n\n\n

\u3000\u3000\u5728MQTT\u534f\u8bae<\/a>\u4e2d\uff0c\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u7531\u534f\u8bae\u672c\u8eab\u4ee5\u53ca\u4f7f\u7528\u7684QoS\u7ea7\u522b\u51b3\u5b9a\u3002MQTT\u534f\u8bae\u89c4\u5b9a\u4e86\u6bcf\u4e2a\u6d88\u606f\u7684\u6700\u5927\u957f\u5ea6\u4e3a256MB\uff0c\u8fd9\u662f\u534f\u8bae\u672c\u8eab\u5141\u8bb8\u7684\u6700\u5927\u957f\u5ea6\u3002\u7136\u800c\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7531\u4e8e\u7f51\u7edc\u548c\u8bbe\u5907\u7684\u9650\u5236\uff0c\u5f88\u5c11\u6709\u60c5\u51b5\u9700\u8981\u4f20\u8f93\u5982\u6b64\u5927\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n

\u3000\u3000QoS\u7ea7\u522b\u4e5f\u4f1a\u5f71\u54cdMQTT\u534f\u8bae\u4f20\u8f93\u6570\u636e\u7684\u6700\u5927\u957f\u5ea6\u3002MQTT\u534f\u8bae\u5b9a\u4e49\u4e86\u4e09\u4e2aQoS\u7ea7\u522b\uff1a0\u7ea7\u522b(\u6700\u591a\u4e00\u6b21\u4f20\u8f93)\u30011\u7ea7\u522b(\u81f3\u5c11\u4e00\u6b21\u4f20\u8f93)\u548c2\u7ea7\u522b(\u4ec5\u4e00\u6b21\u4f20\u8f93)\u3002\u4e0d\u540c\u7684QoS\u7ea7\u522b\u5bf9\u6570\u636e\u4f20\u8f93\u7684\u6700\u5927\u957f\u5ea6\u6709\u4e0d\u540c\u7684\u9650\u5236\u3002<\/p>\n\n\n\n