Skip to content

Commit

Permalink
fix source config issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
  • Loading branch information
jkandasa committed Jul 16, 2021
1 parent 504a820 commit a855bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/adapter/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (s *Service) reconnectSourceDevice() {
}
}

sourceDevice, err := devicePlugin.Create(s.adapterConfig.Source.GetString(model.KeyType), s.adapterConfig.Name, s.adapterConfig.MQTT, s.onSourceMessage, s.onSourceStatus)
sourceDevice, err := devicePlugin.Create(s.adapterConfig.Source.GetString(model.KeyType), s.adapterConfig.Name, s.adapterConfig.Source, s.onSourceMessage, s.onSourceStatus)
if err == nil {
s.sourceDevice = sourceDevice
// update status UP
Expand Down

0 comments on commit a855bc8

Please sign in to comment.