-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
topic reflection in aws bridge & docs update #1479
Changes from all commits
b1d4f8c
3e6dde3
be2d1ce
4e2b51f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,13 +56,13 @@ Here's how to configure it on the AWS IoT Core side. Note: The Configuration pre | |
|
||
|
||
|
||
2. Download your Certificates at **Security** -> **Certificates** page. | ||
2. Download your Certificates at **Security** -> **Certificates** page. Attach Policy to Certificates and attach Certificates to Things. | ||
|
||
![Certification](./assets/certs.png) | ||
|
||
|
||
|
||
3. Create a corresponding MQTT client behavior authentication policy at **Security **-> **Policies** page. And defines the client identifier, publish/subscribe topics, these parameters will be used in NanoMQ Bridge. | ||
3. Create a corresponding MQTT client behavior authentication policy at **Security**-> **Policies** page. And defines the client identifier, publish/subscribe topics, these parameters will be used in NanoMQ Bridge. | ||
|
||
![Policy](./assets/policy.png) | ||
|
||
|
@@ -126,12 +126,12 @@ bridges.aws.c1 { | |
subscription = [ | ||
{ | ||
remote_topic = "cmd/topic1" | ||
local_topic = "topic1" | ||
local_topic = "topic3" | ||
qos = 0 | ||
}, | ||
{ | ||
remote_topic = "cmd/topic2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cmd/topic4 |
||
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: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
local_topic = "topic1" | ||
local_topic = "topic3" | ||
qos = 0 | ||
}, | ||
{ | ||
remote_topic = "cmd/topic2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cmd/topic4 |
||
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 界面看到: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd/topic3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a problem, remote_topic and local_topic are not strongly correlated.