diff --git a/apps/emqx_bridge/src/emqx_bridge.erl b/apps/emqx_bridge/src/emqx_bridge.erl index 60cc94930..4727a1dc8 100644 --- a/apps/emqx_bridge/src/emqx_bridge.erl +++ b/apps/emqx_bridge/src/emqx_bridge.erl @@ -283,7 +283,16 @@ recreate(Type, Name, Conf) -> #{}). create_dry_run(Type, Conf) -> - Conf0 = Conf#{<<"ingress">> => #{<<"remote_topic">> => <<"t">>}}, + + Conf0 = Conf#{<<"egress">> => + #{ <<"remote_topic">> => <<"t">> + , <<"remote_qos">> => 0 + , <<"retain">> => true + , <<"payload">> => <<"val">> + }, + <<"ingress">> => + #{ <<"remote_topic">> => <<"t">> + }}, case emqx_resource:check_config(emqx_bridge:resource_type(Type), Conf0) of {ok, Conf1} -> emqx_resource:create_dry_run_local(emqx_bridge:resource_type(Type), Conf1);