vertx / io.vertx.kotlin.mqtt / io.vertx.mqtt.MqttEndpoint / publishAwait

# publishAwait

`suspend fun MqttEndpoint.publishAwait(topic: String, payload: Buffer, qosLevel: MqttQoS, isDup: Boolean, isRetain: Boolean): Int`

Suspending version of method io.vertx.mqtt.MqttEndpoint.publish

### Parameters

`topic` - topic on which the message is published

`payload` - message payload

`qosLevel` - QoS level

`isDup` - if the message is a duplicate

`isRetain` - if the message needs to be retained

Return

Int

NOTE: This function has been automatically generated from io.vertx.mqtt.MqttEndpoint using Vert.x codegen.

`suspend fun MqttEndpoint.publishAwait(topic: String, payload: Buffer, qosLevel: MqttQoS, isDup: Boolean, isRetain: Boolean, messageId: Int): Int`

Suspending version of method io.vertx.mqtt.MqttEndpoint.publish

### Parameters

`topic` - topic on which the message is published

`payload` - message payload

`qosLevel` - QoS level

`isDup` - if the message is a duplicate

`isRetain` - if the message needs to be retained

`messageId` - message ID

Return

Int

NOTE: This function has been automatically generated from io.vertx.mqtt.MqttEndpoint using Vert.x codegen.