Skip to content
Snippets Groups Projects
Commit 70a6a7df authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't publish "null" node input topic

get_ansi_seq() here can return null, don't pass that value to mqtt.publish()
which gets converted to a string.
parent 483e3f07
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4602 passed
...@@ -117,6 +117,7 @@ while(!js.terminated) { ...@@ -117,6 +117,7 @@ while(!js.terminated) {
else else
key = get_ansi_seq(); key = get_ansi_seq();
} }
if(key)
mqtt.publish(in_topic, key); mqtt.publish(in_topic, key);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment