Add 'hibernate_after' option for zone

This commit is contained in:
Feng Lee 2019-10-12 16:56:18 +08:00
parent 0c37c65a59
commit 8c1e452b6e
2 changed files with 11 additions and 0 deletions

View File

@ -554,6 +554,11 @@ mqtt.ignore_loop_deliver = false
## Value: duration ## Value: duration
zone.external.idle_timeout = 15s zone.external.idle_timeout = 15s
## Hibernate after a duration of idle state.
##
## Value: duration
zone.external.hibernate_after = 60s
## Publish limit for the external MQTT connections. ## Publish limit for the external MQTT connections.
## ##
## Value: Number,Duration ## Value: Number,Duration

View File

@ -725,6 +725,12 @@ end}.
{datatype, {duration, ms}} {datatype, {duration, ms}}
]}. ]}.
%% @doc Hibernate after a duration of idle state.
{mapping, "zone.$name.hibernate_after", "emqx.zones", [
{default, "60s"},
{datatype, {duration, ms}}
]}.
{mapping, "zone.$name.allow_anonymous", "emqx.zones", [ {mapping, "zone.$name.allow_anonymous", "emqx.zones", [
{datatype, {enum, [true, false]}} {datatype, {enum, [true, false]}}
]}. ]}.