Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
This project enables you to connect an usb ACR122U NFC card scanner to a computer and access it using Socket.IO.
You can install this package from PyPI.
pip install acr122u-websocket
python -m acr122u_websocket.app
You can connect to the webserver using Socket.IO. These are the available events:
polling
Start or stop the polling.
start
to start the polling.stop
to stop the polling.no card reader connected
if no card reader is connected.polling started
if the polling has (already) started.polling stopped
if the polling has (already) stopped.invalid message
if the message is neither start
nor stop
.status indicator
Set the status indicator.
confim
to play the confirming status.error
to play the error status.no card reader connected
if no card reader is connectedconfirm status set
if the confirm beep and light have been showerror status set
if the error beep and light have been showinvalid message
if the message is neither confirm
nor error
card scanned
Broadcasts when a card has been scanned
{"uuid": [..]}
- An object containing the uuid in the form of a list of integers.See an example webpage at test.html.
This page is also served on http://localhost:8080/test
.
FAQs
A webserver that connects to a acr122u and exposes it over websocket
We found that acr122u-websocket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.