Show:

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 IOBoard

    A reference to the IOBoard instance

  • readerId Number

    The ID assigned to the reader in the firmware running on the IOBoard (default = 13)

Methods

addEventListener

(
  • type
  • listener
)

Parameters:

  • type String

    The event type

  • listener Function

    The function to be called when the event is fired

dec2hex

() private

dispatch

() private

dispatchEvent

(
  • type
  • optionalParams
)

Parameters:

  • type Event

    The Event object.

  • optionalParams Object

    Optional parameters passed as an object. return {boolean} True if dispatch is successful, false if not.

hasEventListener

(
  • type
)

Parameters:

  • type String

    The event type return {boolean} True is listener exists for this type, false if not.

onSysExMessage

() private

processRFIDData

() private

removeEventListener

(
  • type
  • listener
)

Parameters:

  • type String

    The event type

  • listener Function

    The 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:

removeTag

BO.custom.RFIDEvent.REMOVE_TAG

The removeTag event is dispatched when a tag is removed from the reader.

Event Payload: