Skip to content

Data passing, payload parsing

Pre-release
Pre-release
Compare
Choose a tag to compare
@toxazhl toxazhl released this 14 Mar 05:32
· 23 commits to main since this release

Changelog

New Features

  • Custom Data Sharing
    • Attach custom data to messages within FastMQTT instances using the dictionary-like interface (fastmqtt["database"] = "my_database").
    • Enrich message context and make your applications more flexible.

Improvements

  • Enhanced Message Handling
    • Streamlined message handling logic for efficiency and clarity.
  • Expanded Routing
    • Include MQTTRouter instances within other routers to create more complex and modular MQTT routing structures.
  • New Message and Payload implemitations
    • More convenient payload parsing.

Examples

  • basic.py: Demonstrates core FastMQTT usage, including message publishing and subscription.
  • request_response.py: Showcases the new request/response feature.
  • passing_data.py: Illustrates how to share custom data with message handlers.

Notes

  • Contributions welcome! We encourage you to submit issues for bugs or feature requests and contribute directly with pull requests.

Let me know if you'd like any refinements or want to highlight specific changes!