BO.custom.ID12RFIDReader Class
Creates an interface to an ID-12 RFID Reader. Other Innovations RFID readers will likely work but have not been tested. This object requires firmware other than StandardFirmata to be uploaded to the I/O board. See Breakout/custom_examples/rfid_example1.html and rfid_example2.html for example applications.
To use this object with standard io objects in Breakout, RFIDFirmata must be uploaded to the IOBoard rather than StandardFirmata. See custom_examples/readme.txt for insturctions.
Is is also possible to create a custom application for your IOBoard that includes the RFID reader. See IDx_Reader_Firmata_Example in the IDxRFIDReader library example files.
Constructor
BO.custom.ID12RFIDReader
-
board
-
readerId
Parameters:
-
board
IOBoardA reference to the IOBoard instance
-
readerId
NumberThe ID assigned to the reader in the firmware running on the IOBoard (default = 13)
Item Index
Methods
Methods
addEventListener
-
type
-
listener
Parameters:
-
type
StringThe event type
-
listener
FunctionThe function to be called when the event is fired
dec2hex
()
private
dispatch
()
private
dispatchEvent
-
type
-
optionalParams
Parameters:
-
type
EventThe Event object.
-
optionalParams
ObjectOptional parameters passed as an object. return {boolean} True if dispatch is successful, false if not.
hasEventListener
-
type
Parameters:
-
type
StringThe event type return {boolean} True is listener exists for this type, false if not.
onSysExMessage
()
private
processRFIDData
()
private
removeEventListener
-
type
-
listener
Parameters:
-
type
StringThe event type
-
listener
FunctionThe function to be called when the event is fired
Events
addTag
BO.custom.RFIDEvent.ADD_TAG
The addTag event is dispatched when a new tag is read.
Event Payload:
-
target
BO.custom.ID12RFIDReaderA reference to the ID12RFIDReader object.
-
tag
StringThe RFID tag value.
removeTag
BO.custom.RFIDEvent.REMOVE_TAG
The removeTag event is dispatched when a tag is removed from the reader.
Event Payload:
-
target
BO.custom.ID12RFIDReaderA reference to the ID12RFIDReader object.
-
tag
StringThe RFID tag value.