ccchatbot/mqtt/schalter.go

7 lines
155 B
Go

package mqtt
func (s *Service) HandleSchalterStateChange(open bool) {
token := s.client.Publish("p5/schalter/state/open", 1, true, open)
token.Wait()
}