Class: DF1

DF1

Provides methods for managing connections to DF1 servers.


Example
var df1 = $wat.load('df1')[0];

Methods


createPCCCClient( [serialPort] [, name])

Creates an object that can be used to communicate with a DF1 server using PCCC over the specified serial port. If no serial port is supplied, one must be assigned to port before attempting to open the connection.

Parameters:
Name Type Argument Default Description
serialPort Object <optional>
null

The serial port object to use for DF1 communications.

name string <optional>
""

If specified, the object will be accessible as a property of of this object using the supplied name.

Since:
  • 1.0 (WAT 2.2)
Returns:
Type
df1.DF1PCCCClient

destroy(obj)

Delete a previously created client.

Parameters:
Name Type Description
obj df1.DF1PCCCClient

The client to delete.

Since:
  • 1.0 (WAT 2.2)