Python Forum
Run on Flask blueprint/view like mqtt subscription service? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Run on Flask blueprint/view like mqtt subscription service? (/thread-1790.html)



Run on Flask blueprint/view like mqtt subscription service? - nardev - Jan-25-2017

I'm wondering is there any way to have one view which is monitoring data from mqtt server constantly?
The main reason is to put mqtt as central communication point for web API and rest of the sensors/actuators instead of DB.
And also, not to disperse project into many small python processes/scripts.