mqtt_publish_sync
Publishes an MQTT message synchronously and waits for a reply, enabling request-response interactions between IoT devices.
Instructions
同步發布 MQTT 訊息並等待回應
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qos | No | QoS 等級 (預設: 0) | |
| topic | Yes | 目標裝置ID.動作,如 "targetDevice.action" | |
| payload | Yes | 訊息內容 | |
| timeout | No | 逾時時間 (毫秒,預設: 5000) | |
| deviceId | Yes | 發送方裝置 ID |