Revert "Mqtt: handle messages asynchronously (#7687)"
This reverts commit 77a8a323b3.
This commit is contained in:
parent
1df1a6ea81
commit
93eb81a2eb
2 changed files with 16 additions and 14 deletions
|
|
@ -62,7 +62,7 @@ func (m *MQTT) encode(v interface{}) string {
|
|||
|
||||
func (m *MQTT) publishSingleValue(topic string, retained bool, payload interface{}) {
|
||||
token := m.Handler.Client.Publish(topic, m.Handler.Qos, retained, m.encode(payload))
|
||||
go m.Handler.WaitForToken("send", topic, token)
|
||||
go m.Handler.WaitForToken(token)
|
||||
}
|
||||
|
||||
func (m *MQTT) publish(topic string, retained bool, payload interface{}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue