From 623fc67fc959c684ab30b5fb0fde1dc6dca7d8e2 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 20 Jul 2021 18:27:08 +0800 Subject: [PATCH] chore(gw): uncomment mqttsn confs --- apps/emqx_gateway/etc/emqx_gateway.conf | 70 ++++++++++++------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/apps/emqx_gateway/etc/emqx_gateway.conf b/apps/emqx_gateway/etc/emqx_gateway.conf index 8cf036480..591f2523d 100644 --- a/apps/emqx_gateway/etc/emqx_gateway.conf +++ b/apps/emqx_gateway/etc/emqx_gateway.conf @@ -29,46 +29,46 @@ emqx_gateway: { } } - # mqttsn.1: { - # ## The MQTT-SN Gateway ID in ADVERTISE message. - # gateway_id: 1 + mqttsn.1: { + ## The MQTT-SN Gateway ID in ADVERTISE message. + gateway_id: 1 - # ## Enable broadcast this gateway to WLAN - # broadcast: true + ## Enable broadcast this gateway to WLAN + broadcast: true - # ## To control whether write statistics data into ETS table - # ## for dashbord to read. - # enable_stats: true + ## To control whether write statistics data into ETS table + ## for dashbord to read. + enable_stats: true - # ## To control whether accept and process the received - # ## publish message with qos=-1. - # enable_qos3: true + ## To control whether accept and process the received + ## publish message with qos=-1. + enable_qos3: true - # ## Idle timeout for a MQTT-SN channel - # idle_timeout: 30s + ## Idle timeout for a MQTT-SN channel + idle_timeout: 30s - # ## The pre-defined topic name corresponding to the pre-defined topic - # ## id of N. - # ## Note that the pre-defined topic id of 0 is reserved. - # predefined: [ - # { id: 1 - # topic: "/predefined/topic/name/hello" - # }, - # { id: 2 - # topic: "/predefined/topic/name/nice" - # } - # ] + ## The pre-defined topic name corresponding to the pre-defined topic + ## id of N. + ## Note that the pre-defined topic id of 0 is reserved. + predefined: [ + { id: 1 + topic: "/predefined/topic/name/hello" + }, + { id: 2 + topic: "/predefined/topic/name/nice" + } + ] - # ### ClientInfo override - # clientinfo_override: { - # username: "mqtt_sn_user" - # password: "abc" - # } + ### ClientInfo override + clientinfo_override: { + username: "mqtt_sn_user" + password: "abc" + } - # listener.udp.1: { - # bind: 1884 - # max_connections: 10240000 - # max_conn_rate: 1000 - # } - # } + listener.udp.1: { + bind: 1884 + max_connections: 10240000 + max_conn_rate: 1000 + } + } }