Skip to main content

Interface: DeviceInfo

target​

target: string

The connection target of a device which can be specified by connectAPI is stored as a string.

Example​
"TCP:192.168.192.168"
"BT:00:22:15:7D:70:9C"
"USB:/dev/udev/*"
"USB:000000000000000000"
"TCP:192.168.192.168[local_printer]"
"TCP:192.168.192.168[local_display]"
"TCP:12:34:56:78:56:78"

deviceType​

deviceType: string

ValueDescription
TYPE_PRINTERFor a printer
TYPE_HYBRID_PRINTERFor hybrid model printers
TYPE_DISPLAYFor a customer display
TYPE_KEYBOARDFor a keyboard
TYPE_SCANNERFor a barcode scanner
TYPE_SERIALFor a serial communication device
TYPE_POS_KEYBOARDFor POS keyboard
TYPE_MSRFor MSR
TYPE_GFEFor German fiscal element (TSE)
TYPE_OTHER_PERIPHERALFor other peripheral devices

deviceName​

deviceName: string

The name set to the device is stored. If it could not be acquired, "" (blank character) or "TM Printer" is stored.

Example​

TM-T88V

ipAddress​

ipAddress: string

The IP address of the device is stored. If it could not be acquired, "" (blank character) is stored.

Example​

TCP: "192.168.192.168"

macAddress​

macAddress: string

The MAC address is stored. If it could not be acquired, "" (blank character) is stored.

Example​

TCP: "12:34:56:78:56:78"

bdAddress​

bdAddress: string

The Bluetooth device address is stored. If it could not be acquired, "" (blank character) is stored.

Example​

BT: "00:22:15:7D:70:9C"