ELA RFID Tag Parsing
Parsing data according to ELA
Reader Communication Protocol.
ELA Documentation Downloads
Usage
This parsing function assumes no knowledge about the particular type of RFID tag
in question. It could be a simple ID tag, or measure temperature, humidity,
movement, or an analog input.
This method simply includes all the possible interpretations of the data. A
full, proper interpretation of the data requires knowledge of the tag type. How
to acheive this is left as an exercise for the reader :-)
const parse = require('ela').getParser()
try {
let data = parse(buffer)
data.disappeared
data.rssi
data.readerId
data.tagIdLong
data.tagIdShort
data.temperature
data.humidity
data.movementSensor
data.analogInput
data.lowBattHumidity
data.lowBattMovement
data.lowBattAnalogInput
data.lowBattTemperature
data.lowBatt
data.breakout
} catch(e) {
}