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