Revert "Mqtt: handle messages asynchronously (#7687)"

This reverts commit 77a8a323b3.
This commit is contained in:
andig 2023-05-04 08:24:49 +02:00
parent 1df1a6ea81
commit 93eb81a2eb
2 changed files with 16 additions and 14 deletions

View file

@ -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{}) {