Flask-MQTT | Flask Extension for the MQTT protocol
kandi X-RAY | Flask-MQTT Summary
kandi X-RAY | Flask-MQTT Summary
Flask Extension for the MQTT protocol
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Unsubscribe from mqtt
- Unsubscribe from given topic
- Unsubscribe all topics
- Handle a connection
- Subscribe to a topic
- Find the version string
- Read file contents
- Handle publish event
- Publish a message to a topic
- Handle a subscribe request
Flask-MQTT Key Features
Flask-MQTT Examples and Code Snippets
Community Discussions
Trending Discussions on Flask-MQTT
QUESTION
I have a setup where I use Flask-MQTT to connect my python Flask API to a Mosquitto broker. Whenever I run the Flask API with the development server all is well. But whenever I spin it up for production (using wsgi+nginx), the connection with Mosquitto is made, but everytime i try to publish something i get the following error:
...ANSWER
Answered 2020-Jun-05 at 18:3099% of the time, a "Socket error on client
" is an authentication error. I don't know Flask, so I don't know where to point you at, but something in your code is either trying to pass a username/password that is not defined to Mosquitto, or its trying a TLS connection with an cert that Mosquitto doesn't like.
QUESTION
i tried the example project of the Flask-MQTT (https://github.com/stlehmann/Flask-MQTT) with my local mosquitto broker. But unfortunatly it is not working. Subscription and publish are not forwared correctly. so i've added some logger messages:
...ANSWER
Answered 2020-Jan-28 at 15:27The reason this is failing is in the mosquitto logs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Flask-MQTT
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page