Skip to content

Commit

Permalink
retain flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-gs committed Sep 28, 2024
1 parent b46b42b commit c1753c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solis-control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mqttPublish() {
if [[ "$UseMqtt" == false ]]; then
return 0
fi
mosquitto_pub -h $MqttHost -t "$topic" -m "$message" -u $MqttUser -P $MqttPassword
mosquitto_pub -h $MqttHost -t "$topic" -m "$message" -u $MqttUser -P $MqttPassword --retain
}

haDiscoverySwitch() {
Expand Down

0 comments on commit c1753c1

Please sign in to comment.