-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
MQTT Support Added #443
MQTT Support Added #443
Conversation
Looking forward to this getting merged! |
Codecov Report
@@ Coverage Diff @@
## master #443 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 95 96 +1
Lines 12148 12383 +235
Branches 2049 2101 +52
==========================================
+ Hits 12148 12383 +235
Continue to review full report at Codecov.
|
3397925
to
1fe9e1e
Compare
1fe9e1e
to
5d2cc9b
Compare
This PR is just pending actual user testing and feedback to see if everything works. |
Description:
Related issue (if applicable): #388
Added MQTT Support for Apprise.
Syntax
This is still a work in progress, but basically it works like this...
mqtt://{host}/{topic}
mqtt://{host}:{port}/{topic}
mqtt://{user}@{host}:{port}/{topic}
mqtt://{user}:{password}@{host}:{port}/{topic}
For a secure connection, just use
mqtts
instead.mqtts://{host}:{port}/{topic}
mqtts://{user}@{host}:{port}/{topic}
mqtts://{user}:{password}@{host}:{port}/{topic}
Other things worth noting:
paho-mqtt
for this plugin to work:1883
for un-encrypted connections and8883
for the encrypted ones.mqtts:/{host}:{port}/{topic1},{topic2},{topicN},...
Note: MQTT documents state that that you shouldn't start a topic with a leading slash. However, if your system requires it, just use the
to
argument as a keyword in the argument, eg:mqtt:/{host}?to=/topic/that/starts/with/a/slash
Parameter Breakdown
Example:
New Service Completion Status
keywords
section of thesetup()
declaration%global common_description
Checklist
flake8
)Testing
Anyone can help test this source code as follows: