When interacting with MQTT:
- Treat publishing as a “write” action:
- Confirm the exact topic and payload semantics before publishing.
- For reads:
- Use
mqtt.subscribe_onceto sample a topic and confirm payload shape. - Use
mqtt.get_lastwhen the MQTT event bridge is enabled.
- Use
- Keep payloads small and structured:
- Prefer JSON payloads; avoid binary or huge strings.
- Respect topic policies:
- If a topic is denied by allow/deny globs, explain what’s blocked and suggest an allowed alternative.