Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple MQTT Client Communication and System Controller #6

Closed
nicobokhari13 opened this issue Feb 5, 2024 · 0 comments
Closed

Decouple MQTT Client Communication and System Controller #6

nicobokhari13 opened this issue Feb 5, 2024 · 0 comments

Comments

@nicobokhari13
Copy link
Collaborator

Currently, the blaze_client.py contains all the functionality for the Controller, including:

  • Establishing client
  • Connecting client to Broker
  • Subscribing to topics
  • Parses MQTT messages from Fire Alarm
  • Controlling request/response with the PWA

Split the responsibility by making some controller modules that handles communication with the PWA and fire alarm message construction, and blaze_client will call these functions.

This will enable easier expansion as more topics are created for more interaction with the fire alarm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant