ccchatbot/mqtt/schalter.go

7 lines
155 B
Go
Raw Normal View History

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