Class | AlienReader
In: | alienreader.rb
Parent: | AlienConnection

### Methods

alien_tag_list blinkled gpio gpio= new service upgradenow

### Public Class methods

new(methodsfile=File.join(File.dirname(__FILE__) , "readermethods.dat"))

call the AlienConnection initializer and build lots of the Getters/Setters from a reader methods file. Default value for the methods file will be the file, readermethods.txt found in the same directory as this file, alienreader.rb.

### Public Instance methods

alien_tag_list()
blinkled(state1, state2, duration, count)

Makes the reader blink its LEDs. blinkled is a more complicated function call than an attribute. We just put the method in here rather than try to generate it dynamically.

gpio()

Returns the state of the reader‘s external inputs

gpio=(newvalue)

Sets reader‘s external outputs

service(service_name ="all", command="status")

Implements the Alien service command

upgradenow(opts="")

Executes the Alien UpgradeNow command. The opts parameter correspondst to the standard values passed to the UpgradeNow command. For example

     rdr.upgradenow("force http://server.ip/firmware")

[Validate]