Publish MQTT Messages In Bulk
emqx_publish_bulkPublish up to 50 MQTT messages in one round trip for bulk topic seeding. Use instead of many individual publish calls to reduce latency.
Instructions
Publish a batch of MQTT messages in one round trip.
Prefer this over many emqx_publish calls when seeding several topics — for example bringing up a set of test entities.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "emqx_publish_bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | Messages to publish, at most 50 per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||