refactor(gw_ocpp): default conf macro readable
This commit is contained in:
parent
55f0c1bbda
commit
af7b14ed3f
|
@ -33,27 +33,27 @@
|
||||||
|
|
||||||
-define(HEARTBEAT, <<$\n>>).
|
-define(HEARTBEAT, <<$\n>>).
|
||||||
|
|
||||||
-define(CONF_DEFAULT, <<
|
%% erlfmt-ignore
|
||||||
"\n"
|
-define(CONF_DEFAULT, <<"
|
||||||
"gateway.ocpp {\n"
|
gateway.ocpp {
|
||||||
" mountpoint = \"ocpp/\"\n"
|
mountpoint = \"ocpp/\"
|
||||||
" default_heartbeat_interval = \"60s\"\n"
|
default_heartbeat_interval = \"60s\"
|
||||||
" heartbeat_checking_times_backoff = 1\n"
|
heartbeat_checking_times_backoff = 1
|
||||||
" message_format_checking = disable\n"
|
message_format_checking = disable
|
||||||
" upstream {\n"
|
upstream {
|
||||||
" topic = \"cp/${clientid}\"\n"
|
topic = \"cp/${clientid}\"
|
||||||
" reply_topic = \"cp/${clientid}/Reply\"\n"
|
reply_topic = \"cp/${clientid}/Reply\"
|
||||||
" error_topic = \"cp/${clientid}/Reply\"\n"
|
error_topic = \"cp/${clientid}/Reply\"
|
||||||
" }\n"
|
}
|
||||||
" dnstream {\n"
|
dnstream {
|
||||||
" topic = \"cs/${clientid}\"\n"
|
topic = \"cs/${clientid}\"
|
||||||
" }\n"
|
}
|
||||||
" listeners.ws.default {\n"
|
listeners.ws.default {
|
||||||
" bind = \"0.0.0.0:33033\"\n"
|
bind = \"0.0.0.0:33033\"
|
||||||
" websocket.path = \"/ocpp\"\n"
|
websocket.path = \"/ocpp\"
|
||||||
" }\n"
|
}
|
||||||
"}\n"
|
}
|
||||||
>>).
|
">>).
|
||||||
|
|
||||||
all() -> emqx_common_test_helpers:all(?MODULE).
|
all() -> emqx_common_test_helpers:all(?MODULE).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue