remove topic prefix

This commit is contained in:
Daniel Chote
2019-10-15 12:43:32 -04:00
parent 35371304d0
commit 44671ac3cd
4 changed files with 24 additions and 21 deletions

View File

@ -73,7 +73,7 @@ func Init() {
}
log.Printf("%s = %s", oidTopic.Topic, convertedValue)
token := client.Publish(config.TopicPrefix+"/"+oidTopic.Topic, 0, false, convertedValue)
token := client.Publish(oidTopic.Topic, 0, false, convertedValue)
token.Wait()
if token.Error() != nil {