Alien Ruby RFID Library Examples
tagserver.rb
An example program to serve reader tag data. TagStreamMode and NotifyMode
on the reader both require you to wait for the reader to connect to your
service, and feed you tag data. This application captures this streamed
data from the reader and serves it to any TCP sockets that may have
connected to it - hence, a TagServer instead of a TagStreamer.
- Connect to an Alien RFID reader and login. Set TagStreamAddress/Port and/or
NotifyAddress/Port to direct reader data to this application.
- Use one thread to continually listen for TCP connections from the reader,
and grab any data.
- Use other threads to listen for external TCP connections and accept them.
- Any time tag data is received from the reader, send it to each of the
external TCP sockets too.
- If any socket fails to write, immediately close it.
Copyright 2014, Alien Technology Corporation. All rights reserved.
Required files
alienreader
alientag
alienconfig
thread