This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.logger import Logger | |
from twisted.internet.defer import inlineCallbacks | |
from autobahn.twisted.wamp import ApplicationRunner | |
from autobahn.twisted.wamp import ApplicationSession | |
import time | |
class RobotSession(ApplicationSession): | |
log = Logger() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/env python3 | |
## Evan Widloski - 2017-01-06 | |
## Asynchronous magstripe reader example | |
## Requires root and >= python 3.5 | |
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio | |
import asyncio, evdev, json, os | |
# MSR100 reader vendor/product ids |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/env python3 | |
## Evan Widloski - 2017-01-06 | |
## Asynchronous magstripe reader example | |
## Requires root and >= python 3.5 | |
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio | |
import asyncio, evdev | |
# MSR100 reader vendor/product ids |
NewerOlder