AnyEvent::RFXCOM::RX - AnyEvent module for an RFXCOM receiver
version 1.142240
# Create simple RFXCOM message reader with logging callback AnyEvent::RFXCOM::RX->new(callback => sub { print $_[0]->summary }, device => '/dev/ttyUSB0'); # start event loop AnyEvent->condvar->recv;
AnyEvent module for handling communication with an RFXCOM receiver.
new(%params)
Constructs a new AnyEvent::RFXCOM::RX object. The supported parameters are:
AnyEvent::RFXCOM::RX
The name of the device to connect to. The value can be a tty device name or a hostname:port for TCP-based RFXCOM receivers. The default is /dev/rfxcom-rx. See Device::RFXCOM::RX for more information.
hostname:port
/dev/rfxcom-rx
Device::RFXCOM::RX
The callback to execute when a message is received.
cleanup()
This method attempts to destroy any resources in the event of a disconnection or fatal error.
anyevent_read_type()
This method is used to register an AnyEvent::Handle read type method to read RFXCOM messages.
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.
AnyEvent(3)
RFXCOM website: http://www.rfxcom.com/
Mark Hindess <soft-cpan@temporalanomaly.com>
This software is copyright (c) 2014 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 AnyEvent::W800, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::W800
CPAN shell
perl -MCPAN -e shell install AnyEvent::W800
For more information on module installation, please visit the detailed CPAN module installation guide.