ex_co2_mini v0.1.1 ExCO2Mini.Decoder
Decodes packets from the CO₂Mini device.
Link to this section Summary
Functions
Decodes (and checksums) an eight-byte data packet received from the device
Returns a list of eight integers, representing the eight-byte key used to communicate with the device
Link to this section Functions
Link to this function
decode(arg)
Decodes (and checksums) an eight-byte data packet received from the device.
Returns {key, value}
, where key
is an 8-bit integer and value
is a
16-bit integer.
Raises an error if the data packet does not pass the checksum routine.
Link to this function
key()
Returns a list of eight integers, representing the eight-byte key used to communicate with the device.