2019-08-07 12:27:18 +02:00
|
|
|
package mqtt
|
|
|
|
|
|
|
|
func (s *Service) HandleSchalterStateChange(open bool) {
|
2019-08-07 13:05:42 +02:00
|
|
|
token := s.client.Publish("p5/schalter/state/open", 1, true, open)
|
2019-08-07 12:57:20 +02:00
|
|
|
token.Wait()
|
2019-08-07 12:27:18 +02:00
|
|
|
}
|