Device::RFXCOM::Response - Device::RFXCOM::Response class for data from RFXCOM receiver
version 1.110800
# see Device::RFXCOM::RX
Base class for RFXCOM response modules.
new(%params)
This constructor returns a new response object.
type()
This method returns the type of the response. It will be one of:
for a message that could not be decoded
for a response to a version check request
for a response to a mode setting request
for an empty message
or it will be a string representing the type of device from which the message originated.
header_byte()
This method returns the header byte contains the length in buts and master/slave flag for the message.
master()
This method returns true of the message originated from the master receiver or false of it originated from a slave receiver.
hex_data()
This method returns a hex string representing the payload of the RF message.
data()
This method returns the binary string of the payload of the RF message.
length()
This method returns the length of the payload of the RF message (in bytes).
bytes()
This method returns an array reference of bytes representing the payload of the RF message.
messages()
This method returns an array reference of message objects generated from the payload.
duplicate()
This method returns a true value if the message was identical to another sent recently.
summary()
This method returns a string summary of the contents of the RF message. (If there are multiple message objects produced from the payload then this may be a multiline string.)
Special thanks to RFXCOM, http://www.rfxcom.com/, for their excellent documentation and for giving me permission to use it to help me write this code. I own a number of their products and highly recommend them.
RFXCOM website: http://www.rfxcom.com/
Mark Hindess <soft-rfxcom@temporalanomaly.com>
This software is copyright (c) 2010 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Device::W800, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::W800
CPAN shell
perl -MCPAN -e shell install Device::W800
For more information on module installation, please visit the detailed CPAN module installation guide.