Deviceport method, Deviceserialnumber method, Devicesettings method – MagTek BLUETOOTH SWIPE READER User Manual

Page 11: Deviceport, Method, Deviceserialnumber, Devicesettings

Advertising
background image

Methods

5

DEVICEPORT METHOD

Sets the serial port number.

Syntax
void DevicePort(int devPortNumber)

The DevicePort method syntax has this part:



DEVICESERIALNUMBER METHOD

Returns a string value indicating the device serial number from the reader.

Syntax
String DeviceSerialNumber()

DEVICESETTINGS METHOD

Returns an integer value indicating the status of the setting.

Syntax
int DeviceSettings(String settings)

Remarks
Sets the basic serial port parameter. The DeviceSettings returns a zero (0) if the setting is OK,
otherwise a non-zero for error.

The DeviceSettings method syntax has these parts:


Example
int stat = DeviceSetting(“9600, N, 8, 1”);
This returns a zero (0) if the setting is OK.

Part

Data Type

Description

devPortNumber int

Serial device port number

Part

Data Type

Description

settings

String

The settings consist of baud rate, parity, data bits and
stop bits.

Advertising