From aee627c058345ff162d8561662c18405a893363f Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Wed, 7 Aug 2019 13:05:42 +0200 Subject: [PATCH] fix mqtt change prio to 1 for persistant --- mqtt/schalter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt/schalter.go b/mqtt/schalter.go index e72d155..b90928d 100644 --- a/mqtt/schalter.go +++ b/mqtt/schalter.go @@ -1,6 +1,6 @@ package mqtt func (s *Service) HandleSchalterStateChange(open bool) { - token := s.client.Publish("p5/schalter/state/open", 0, true, open) + token := s.client.Publish("p5/schalter/state/open", 1, true, open) token.Wait() }