Skip to content

Commit e9f8789

Browse files
committed
added comment block for description at start of file
not nessarily for the style guide, just helps since we probably won't touch it for a long time
1 parent 5a4ad30 commit e9f8789

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scan_rfid.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env
2+
# WSU Team Projects 2
3+
#scan_rfid.py
4+
#This script is designed for use on a raspberry pi connected to the WSU_Secure network, and a M6E nano ThingMagic RFID reader
5+
#This script will read any RFID tags near the antenna and forward the information to the team21.cs.wright.edu under the
6+
#user drone with the password 36024pAbxHY
7+
#
28
from __future__ import print_function
39
import time
410
import sys
@@ -29,6 +35,7 @@
2935
#reader.start_reading(lambda tag: print(tag.epc, tag.antenna, tag.read_count, tag.rssi))
3036
try:
3137
reader.start_reading(lambda tag: subprocess.call(['curl','-u',credentials,'-d',"tag="+tag.epc.decode("utf-8"),'-X','POST',post_url]))
38+
# starts the reader and forwards info using curl to the server specified in 'post_url'
3239
time.sleep(runtime)
3340
reader.stop_reading()
3441
sys.exit()

0 commit comments

Comments
 (0)