Skip to content

Commit d519fa2

Browse files
committed
mqtt out: suport list topic names
1 parent 6a3e8eb commit d519fa2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/nodes/ered_node_mqtt_out.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
post_exception_or_debug/3
3333
]).
3434
-import(ered_messages, [
35+
any_to_binary/1,
3536
convert_to_num/1,
3637
to_bool/1
3738
]).
@@ -185,7 +186,7 @@ handle_msg(
185186
Data = {
186187
publish_payload,
187188
Payload,
188-
MsgTopic,
189+
any_to_binary(MsgTopic),
189190
convert_to_num(QoS),
190191
to_bool(Retain)
191192
},
@@ -221,7 +222,7 @@ handle_msg(
221222
Data = {
222223
publish_payload,
223224
Payload,
224-
NodeTopic,
225+
any_to_binary(NodeTopic),
225226
convert_to_num(QoS),
226227
to_bool(Retain)
227228
},

0 commit comments

Comments
 (0)