Skip to content

Commit

Permalink
Update Huawei_LiteOS_SDK_MQTT_Developer_Guide.md
Browse files Browse the repository at this point in the history
developer2324 authored Jan 26, 2019
1 parent d12169a commit e009e74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/Huawei_LiteOS_SDK_MQTT_Developer_Guide.md
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ MQTT(MQ Telemetry Transport)是一种基于发布和订阅(publish/subscri

当前LiteOS MQTT的实现承载在传输层安全协议TLS之上,通信的协议层次见下图。

![](./figures/mqtt/zh-cn_image_0150526167.png)
![](./figures/MQTT/zh-cn_image_0150526167.png)


<h2 id="接入IoT平台对接模式.md">接入IoT平台对接模式</h2>
@@ -28,7 +28,7 @@ MQTT(MQ Telemetry Transport)是一种基于发布和订阅(publish/subscri

**一机一密模式**,即一个设备在平台申请一个密码,流程图如下所示:

![](./figures/mqtt/zh-cn_image_0150525918.png)
![](./figures/MQTT/zh-cn_image_0150525918.png)

**一型一密模式**,即一种产品在平台申请一个密码,产品的设备唯一标识nodeid由设备厂家分配,设备的密码由设备和平台动态协商,流程图如下所示:

@@ -73,13 +73,13 @@ IoT平台需要有配置的MQTT设备信息,才能和设备连接。具体请

在平台的设备注册中输入设备信息,提交后保存对应的deviceid和password。

![](./figures/mqtt/zh-cn_image_0150495735.png)
![](./figures/MQTT/zh-cn_image_0150495735.png)

<h2 id="一型一密(动态连接)配置.md">一型一密(动态连接)配置</h2>

在产品管理中导入产品,提交后保存productid和password。

![](./figures/mqtt/zh-cn_image_0150495737.png)
![](./figures/MQTT/zh-cn_image_0150495737.png)

<h2 id="设备使用MQTT组件的适配.md">设备使用MQTT组件的适配</h2>

@@ -131,11 +131,11 @@ MQTT组件相关代码如下:

静态设备平台profile的查询

![](./figures/mqtt/zh-cn_image_0150495739.png)
![](./figures/MQTT/zh-cn_image_0150495739.png)

动态设备profile查询

![](./figures/mqtt/zh-cn_image_0150495741.png)
![](./figures/MQTT/zh-cn_image_0150495741.png)

举例:

0 comments on commit e009e74

Please sign in to comment.