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

Support for MQTT? #16

Closed
MrMontesa opened this issue Sep 5, 2017 · 10 comments
Closed

Support for MQTT? #16

MrMontesa opened this issue Sep 5, 2017 · 10 comments

Comments

@MrMontesa
Copy link

Since now my setup is working flawlessly now, I do have the first feature request :-)
Could you imagine making MQTT message sending optionally available?
Here's my idea:
I would like to send the UID of a scanned RFID tag via MQTT to my broker which is a home-automation system. There I'd like to do some more actions, like turning on lights, starting to play music, etc.

This is is how I could imagine an implementation:

  • enhance the "setting page" with an additional form. The following fields are needed:
    • MQTT host containing an IP address.
    • MQTT topic which is a string like "my/special/topic"
    • MQTT user optionally
    • MQTT password optionally in case one is using a public MQTT server on the internet
  • As soon as the MQTT host variable is filled, the MQTT sending should be activated.
  • As soon as an RFID token is successfully scanned, the MQTT message should be sent to the configured broker using the configured topic
  • The most commonly used MQTT library is: arduino-mqtt and from the examples it seems to be quite easy to implement

This would really boost functionality.
Let me kwow what you think.
Thanks much

@omersiar
Copy link
Collaborator

omersiar commented Sep 6, 2017

@omersiar
Copy link
Collaborator

omersiar commented Sep 6, 2017

Give it a bounty, and hope for the best. I would prefer it to be in an another branch.

@olskar
Copy link

olskar commented Sep 22, 2017

Would love this as well

@omersiar
Copy link
Collaborator

For future reference https://bitbucket.org/xoseperez/espurna

@electrontube
Copy link

I would also love to see MQTT Support.

@omersiar
Many thanks for the great project!

@goermezer
Copy link

Me too. I need it for Smart Home (OpenHAB in my case). A predefined URL call to a HTTP service with the UID as an url parameter could be a workaround if MQTT is too complicated.

@rneurink
Copy link

MQTT is not that difficult to implement the problem here is security. MQTT supports tls but the esp is too weak to perform these tasks so all data will be sent unencrypted. This of course may not be a problem if you use additional security features with reading the cards like a block with a specific key. But in this state if someone intercepts de message you can easily write it to a card and get in. (and yes i am aware that you can also very easily copy cards) basicly if you have a bit of programming knoweledge you can implement this with a few lines of code as it shouldn't interfere with most of the functions

@thunderace
Copy link
Contributor

thunderace commented Dec 3, 2017

Done. See #26
Only tested with local MQTT server

omersiar added a commit that referenced this issue Dec 4, 2017
@omersiar
Copy link
Collaborator

omersiar commented Dec 4, 2017

See #26

@omersiar omersiar closed this as completed Dec 4, 2017
@9acca9
Copy link

9acca9 commented Jun 5, 2018

Hi. Can somebody give me a hand to config mosquitto?? i already installed on a Ubuntu 16.04
Thanks

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

No branches or pull requests

8 participants