Device::Firmata::IO::SerialIO - serial port interface to Firmata device
Establish a serial connection with a Firmata device. The first parameter is the name of the serial device connected with the Firmata device, e.g. '/dev/ttyUSB0' or 'COM9'. The second parameter is an optional hash of parameters for the serial port. The parameter baudrate is supported and defaults to 57600. Returns a Device::Firmata::IO::SerialIO object. Typically called internally by "open ( serialPort , [opts] )" in Device::Firmata.
baudrate
57600
Assign a Device::SerialPort (or Win32::SerialPort) as IO port and return a Device::Firmata::IO::SerialIO object. Typically used internally by "open ( serialPort , [opts] )" method.
Send a bunch of data to the Firmata device. Typically used internally by Device::Firmata::Platform.
Fetch up to given number of bytes from the serial port. This function is non-blocking. Returns the received data. Typically used internally by Device::Firmata::Platform.
Close serial connection to Firmata device.
"attach ( ioPort )" in Device::Firmata::Platform
To install Device::Firmata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Firmata
CPAN shell
perl -MCPAN -e shell install Device::Firmata
For more information on module installation, please visit the detailed CPAN module installation guide.