PublishAsync(topic, payload)
ultimately constructs a MQT5PublishMessage
as well and then calls the other PublishAsync
. The difference is that it explicitly uses an ASCII encoder, whereas when you construct a MQT5PublishMessage
yourself it defaults to a UTF-8 encoder.