Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.19 KB

File metadata and controls

63 lines (46 loc) · 1.19 KB

zpe.lib.serial

This is the official Serial Port plugin for ZPE.

This library was among the first I developed for ZPE, but it fell into disrepair.

A serial port

The plugin provides support for listing, opening and writing to serial ports.

Installation

Place zpe.lib.serial.jar in your ZPE native-plugins folder and restart ZPE.

You can also download with the ZULE Package Manager by using:

zpe --zule install zpe.lib.serial.jar

Documentation

Full documentation, examples and API reference are available here:

View the complete documentation

Example

import "zpe.lib.serial"

ports = list_serial_ports()

for (p in ports)
    print(p->get_name())
end for

port = ports[0]
port->open()
port->write()

Notes

  • Uses jSerialComm internally.
  • Requires permission level 3 for port operations.