rename sve to sver, fixes in sver
This commit is contained in:
@ -157,7 +157,7 @@ func (self *SingleValueExtractorHandler) Handle(message handler.MessageT) {
|
||||
lost("no payloadRegex defined, devicePart can't be used", message)
|
||||
return
|
||||
}
|
||||
if self.config.devicePart >= len(subTopics) {
|
||||
if self.config.devicePart >= len(payloadMatches) {
|
||||
lost("devicePart out of range", message)
|
||||
return
|
||||
}
|
||||
@ -183,7 +183,7 @@ func (self *SingleValueExtractorHandler) Handle(message handler.MessageT) {
|
||||
lost("no payloadRegex defined, valuePart can't be used", message)
|
||||
return
|
||||
}
|
||||
if self.config.valuePart >= len(subTopics) {
|
||||
if self.config.valuePart >= len(payloadMatches) {
|
||||
lost("valuePart out of range", message)
|
||||
return
|
||||
}
|
||||
@ -204,7 +204,7 @@ func (self *SingleValueExtractorHandler) Handle(message handler.MessageT) {
|
||||
lost("no payloadRegex defined, unitPart can't be used", message)
|
||||
return
|
||||
}
|
||||
if self.config.unitPart >= len(subTopics) {
|
||||
if self.config.unitPart >= len(payloadMatches) {
|
||||
lost("unitPart out of range", message)
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user