- fix re-connection after connection loss to broker

- add subscribe call after reconnect
  - additional config settings for timeout values
- add more info/warn outputs
- change default log level from "warn" to "info"
This commit is contained in:
2022-12-31 11:09:28 +01:00
parent 005b167f5e
commit 6b64e5aa00
6 changed files with 48 additions and 22 deletions

View File

@@ -49,7 +49,7 @@ func (p *PinControlService) _task() {
select {
case <-p.timer.C:
for pinName, pin := range p.Pins {
log.Debug("timer event")
//log.Debug("timer event")
if pin.Changed() {
log.Debugf("detected pin change for pin %s (pin no %d)", pin.Name, pin.Id)
if pin.SendChangeEvents && p.OnChangeCallback != nil {