diff --git a/apps/emqx_gateway/etc/emqx_gateway.conf b/apps/emqx_gateway/etc/emqx_gateway.conf
index 6c7928174..8c77fe652 100644
--- a/apps/emqx_gateway/etc/emqx_gateway.conf
+++ b/apps/emqx_gateway/etc/emqx_gateway.conf
@@ -38,7 +38,7 @@ gateway: {
}
coap.1: {
- enable_stats: false
+ enable_stats: false
authentication: {
enable: true
@@ -52,16 +52,16 @@ gateway: {
]
}
- #authentication.enable: false
+ #authentication.enable: false
- heartbeat: 30s
- notify_type: qos
- subscribe_qos: qos0
- publish_qos: qos1
- listener.udp.1: {
- bind: 5683
+ heartbeat: 30s
+ notify_type: qos
+ subscribe_qos: qos0
+ publish_qos: qos1
+ listener.udp.1: {
+ bind: 5683
}
- }
+ }
mqttsn.1: {
## The MQTT-SN Gateway ID in ADVERTISE message.
diff --git a/apps/emqx_gateway/src/coap/README.md b/apps/emqx_gateway/src/coap/README.md
index c451d6533..12b5ac5b7 100644
--- a/apps/emqx_gateway/src/coap/README.md
+++ b/apps/emqx_gateway/src/coap/README.md
@@ -108,10 +108,10 @@ The server manages the client through the ClientId. If the ClientId is wrong, EM
1. Create a Connection
Method: POST
- URI Schema: mqtt/{+topic}{?q\*}
+ URI Schema: mqtt/connection{?q\*}
q\*:
- - clientId := client uid
+ - clientid := client uid
- username
- password
@@ -126,10 +126,10 @@ The server manages the client through the ClientId. If the ClientId is wrong, EM
2. Close a Connection
Method : DELETE
- URI Schema: mqtt/{+topic}{?q\*}
+ URI Schema: mqtt/connection{?q\*}
q\*:
- - clientId := client uid
+ - clientid := client uid
- token
Resonse:
@@ -143,12 +143,14 @@ The server manages the client through the ClientId. If the ClientId is wrong, EM
### Heartbeat
-The Coap client can maintain the "connection" with the server through the heartbeat (regardless of whether it is authenticated or not), so that the server will not release related resources
+The Coap client can maintain the "connection" with the server through the heartbeat,
+regardless of whether it is authenticated or not,
+so that the server will not release related resources
Method : PUT
-URI Schema: mqtt/{+topic}{?q\*}
+URI Schema: mqtt/connection{?q\*}
q\*:
-- clientId if authenticated
+- clientid if authenticated
- token if authenticated
Response:
@@ -166,7 +168,7 @@ CoAP gateway uses some options in query string to conversion between MQTT CoAP.
1. Shared Options
- - clientId
+ - clientid
- token
2. Connect Options
@@ -188,9 +190,9 @@ CoAP gateway uses some options in query string to conversion between MQTT CoAP.
-
@@ -204,7 +206,7 @@ CoAP gateway uses some options in query string to conversion between MQTT CoAP.
option
- value type
- default
+ Option
+ Type
+ Default