set_device


Description:

public void set_device (string device) throws Error

Sets the device connected to this Port.

This is only needed for devices that cannot be fully automatically detected, such as Analog/NXT sensors.

The device name must match a driver name or no driver will be bound to the device.

Parameters:

device

The name of the device/driver.

Exceptions:

Error

if setting the device failed.