Add 'hibernate_after' option for zone
This commit is contained in:
parent
0c37c65a59
commit
8c1e452b6e
|
@ -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
|
||||||
|
|
|
@ -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]}}
|
||||||
]}.
|
]}.
|
||||||
|
|
Loading…
Reference in New Issue