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

Add support for PN532 NFC #4791

Merged
merged 3 commits into from
Jan 2, 2019
Merged

Add support for PN532 NFC #4791

merged 3 commits into from
Jan 2, 2019

Conversation

andrethomas
Copy link
Contributor

Add support for PN532 Near Field Communication (NFC) controller on I2C.

Scanning for tags is performed in 100ms intervals and if a tag is detected it is reported via telemetry as follows

22:07:10 MQT: tele/sonoff/SENSOR = {"Time":"2019-01-02T22:07:10","PN532":{"UID":"94D8FC5F"}}

Since the telemetry report is immediate provision is also made for rule interaction by providing an event as follows

22:08:45 RSL: Group 0, Index 1, Command EVENT, Data PN532=94D8FC5F

@andrethomas
Copy link
Contributor Author

I forgot to mention if it finds and reports a tag it will defer reporting another one for 2 seconds...

@arendst
Copy link
Owner

arendst commented Jan 2, 2019

I miss the break in FUNC_EVERY_100_MILLISECONDS....

@andrethomas
Copy link
Contributor Author

Thx, well spotted as usual :)

@arendst arendst merged commit 1a3ba7b into arendst:development Jan 2, 2019
@ozett
Copy link

ozett commented Jan 2, 2019

cool, this is fantastic: NFC on tasmota. 👍

will anybody code the simpler Wiegang for 2 ints and 2 pins also in?
(i have NFC and wiegand fingerprinters waiting for tasmota...may i post a picture?)

some fragments to get it started (for coders, not me 😩 )
#3647 (comment)

@andrethomas andrethomas deleted the PN532 branch January 3, 2019 12:37
gemu2015 pushed a commit to gemu2015/Sonoff-Tasmota that referenced this pull request Jan 27, 2019
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

Successfully merging this pull request may close these issues.

3 participants