sylvia_iot_coremgr::libs::mq::emqx

Function publish_message

Source
pub async fn publish_message(
    client: &Client,
    opts: &ManagementOpts,
    hostname: &str,
    username: &str,
    queue: &str,
    payload: String,
) -> Result<(), ErrResp>
Expand description

To publish a message to the specified queue (such as uldata and dldata).

The payload MUST be Base64 encoded string.