Skip to content

Commit 241c826

Browse files
Merge pull request #247 from airdrummingfool/mqtt_lookup_error
Handle MQTT DNS lookup issue
2 parents 5b6e314 + d5f4e52 commit 241c826

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

support/mqtt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ mqtt_error_handler () {
165165
#ERRORS
166166
[[ ${received^^} =~ .*REFUSED.* ]] && return_value=1 && print_message="mqtt broker refused connection - check username, password, and host address"
167167
[[ ${received^^} =~ .*NETWORK.* ]] && return_value=0 && print_message="network is down. enqueuing command to try again after a delay"
168+
[[ ${received^^} =~ .*"LOOKUP ERROR".* ]] && return_value=0 && print_message="issue connecting to mqtt server (lookup error). enqueuing command to try again after a delay"
168169

169170
if [ -n "$last_error_message" ] && [ "$last_error_message" == "$print_message" ]; then
170171
#HERE, WE HAVE A REPEATED ERROR

0 commit comments

Comments
 (0)