The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::W800 - Module to support W800 RF receiver

VERSION

version 1.142240

SYNOPSIS

  # Create simple W800 message reader with logging callback
  AnyEvent::W800->new(callback => sub { print $_[0]->summary },
                      device => '/dev/ttyUSB0');

  # start event loop
  AnyEvent->condvar->recv;

DESCRIPTION

AnyEvent module to decode messages from an W800 RF receiver from WGL & Associates.

IMPORTANT: This API is still subject to change.

METHODS

new(%parameters)

This constructor returns a new W800 RF receiver object. The only supported parameter is:

device

The name of the device to connect to. The value can be a tty device name or a hostname:port for TCP-based serial port redirection.

The default is /dev/w800 in anticipation of a scenario where a udev rule has been used to identify the USB tty device of the W800.

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 W800 messages.

SEE ALSO

Device::W800

W800 website: http://www.wgldesigns.com/w800.html

AUTHOR

Mark Hindess <soft-cpan@temporalanomaly.com>

COPYRIGHT AND LICENSE

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.