Skip to content

Commit

Permalink
* MDF [docs] update aws bridge docs.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann0222 <yukang.wei@emqx.io>
  • Loading branch information
OdyWayne committed Oct 9, 2023
1 parent be2d1ce commit 4e2b51f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Binary file modified docs/en_US/bridges/assets/test.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/en_US/bridges/aws-iot-core-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ bridges.aws.c1 {
subscription = [
{
remote_topic = "cmd/topic1"
local_topic = "topic1"
local_topic = "topic3"
qos = 0
},
{
remote_topic = "cmd/topic2"
local_topic = "topic2"
local_topic = "topic4"
qos = 1
}
]
Expand Down Expand Up @@ -230,10 +230,10 @@ $ nanomq start --old_conf nanomq.conf

Now you can verify whether the bridging channel is working by publishing a message to NanoMQ. Then check on the MQTT test client tool in AWS IoT Core.

For example, publish a message `hello` locally to the bridge topic `topic_1` of NanoMQ,
For example, publish a message `hello` locally to the bridge topic `topic1` of NanoMQ,

```bash
$ ./nanomq_cli pub -h "local.broker.address" -t "topic_1" -m "hello" -q 1
$ ./nanomq_cli pub -h "local.broker.address" -t "topic1" -m "hello" -q 1
```

On AWS MQTT test client menu:
Expand Down
Binary file modified docs/zh_CN/bridges/assets/test.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/zh_CN/bridges/aws-iot-core-bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sudo ninja install



2.**安全性** -> **证书** 处下载相关的 CRT 证书。
2.**安全性** -> **证书** 处下载相关的 CRT 证书,并将策略附加到证书上,证书附加到物品上

![Certification](./assets/certs.png)

Expand Down Expand Up @@ -123,12 +123,12 @@ bridges.aws.c1 {
subscription = [
{
remote_topic = "cmd/topic1"
local_topic = "topic1"
local_topic = "topic3"
qos = 0
},
{
remote_topic = "cmd/topic2"
local_topic = "topic2"
local_topic = "topic4"
qos = 1
}
]
Expand Down Expand Up @@ -222,10 +222,10 @@ $ nanomq start --old_conf nanomq.conf

用户可以在 AWS IoT Core 的 MQTT 测试客户端工具上验证桥接是否成功。

如在本地向 NanoMQ 的桥接主题 `topic_1`发布一条消息 `hello`
如在本地向 NanoMQ 的桥接主题 `topic1`发布一条消息 `hello`

```bash
$ ./nanomq_cli pub -h "local.broker.address" -t "topic_1" -m "hello" -q 1
$ ./nanomq_cli pub -h "local.broker.address" -t "topic1" -m "hello" -q 1
```

即可在AWS 界面看到:
Expand Down
4 changes: 2 additions & 2 deletions nanomq/aws_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "broker.h"
#include "mqtt_api.h"

// #if defined(SUPP_AWS_BRIDGE)
#if defined(SUPP_AWS_BRIDGE)

#include <assert.h>
/* POSIX includes. */
Expand Down Expand Up @@ -602,4 +602,4 @@ aws_bridge_client(conf_bridge_node *node)
return ret;
}

// #endif
#endif

0 comments on commit 4e2b51f

Please sign in to comment.