diff --git a/docs/en_US/bridges/assets/test.png b/docs/en_US/bridges/assets/test.png index 04ebc6f52..ac0b5fc0c 100644 Binary files a/docs/en_US/bridges/assets/test.png and b/docs/en_US/bridges/assets/test.png differ diff --git a/docs/en_US/bridges/aws-iot-core-bridge.md b/docs/en_US/bridges/aws-iot-core-bridge.md index 7d21f75bd..bfd660935 100644 --- a/docs/en_US/bridges/aws-iot-core-bridge.md +++ b/docs/en_US/bridges/aws-iot-core-bridge.md @@ -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 } ] @@ -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: diff --git a/docs/zh_CN/bridges/assets/test.png b/docs/zh_CN/bridges/assets/test.png index 4b6faf223..1f9e7ccec 100644 Binary files a/docs/zh_CN/bridges/assets/test.png and b/docs/zh_CN/bridges/assets/test.png differ diff --git a/docs/zh_CN/bridges/aws-iot-core-bridge.md b/docs/zh_CN/bridges/aws-iot-core-bridge.md index 9f5363348..3e8353106 100644 --- a/docs/zh_CN/bridges/aws-iot-core-bridge.md +++ b/docs/zh_CN/bridges/aws-iot-core-bridge.md @@ -55,7 +55,7 @@ sudo ninja install -2. 在 **安全性** -> **证书** 处下载相关的 CRT 证书。 +2. 在 **安全性** -> **证书** 处下载相关的 CRT 证书,并将策略附加到证书上,证书附加到物品上。 ![Certification](./assets/certs.png) @@ -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 } ] @@ -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 界面看到: diff --git a/nanomq/aws_bridge.c b/nanomq/aws_bridge.c index c57f62f4d..e00ed818c 100644 --- a/nanomq/aws_bridge.c +++ b/nanomq/aws_bridge.c @@ -2,7 +2,7 @@ #include "broker.h" #include "mqtt_api.h" -// #if defined(SUPP_AWS_BRIDGE) +#if defined(SUPP_AWS_BRIDGE) #include /* POSIX includes. */ @@ -602,4 +602,4 @@ aws_bridge_client(conf_bridge_node *node) return ret; } -// #endif +#endif