ConnectionInfo
Create an instance of the ConnectionInfo, then use the function calls described in this chapter.
getAddress
This function returns the address of the device.
(NSString*) getAddress;Return Value:
Returns the address of the device.
getConnectionType
This function returns the type of connection Interface for the device.
(MTU_ConnectionType) getConnectionType;Return Value:
Returns the MTU_ConnectionType
getDeviceType
This function returns the type for the device.
(MTU_DeviceType) getDeviceType;Return Value:
Returns the MTU_DeviceType.
getCertificateInfo
This function returns the type for the device.
Return Value:
Returns the CertificateInfo*. CertificateInfo:
initWithDeviceType
This function initializes an instance of ConnectionInfo.
Parameter
Description
deviceType
Enumerated device type.
connectionType
Enumerated connection type.
address
Address for the device.
For Ethernet devices, address should be in the form:
IP://IP-Address:PORT
for example, IP://10.57.10.180:26
For Wireless devices, address should be in the form: TLS12://TLSDEVICESERIALNUMBER TLS12TRUST://TLSDEVICESERIALNUMBER
for example, TLS12://TLS99261829170E0810 TLS12TRUST://TLS99261829170E0810
For Bluetooth LE devices, address should be in the form:
BLEEMV://DEVICENAME
for example, BLEEMV://DynaPro Go-EB66
For WebSocket or Secure WebSocket devices, address should be in the form:
ws://IP-Address or Hostname wss://IP-Address or Hostname for example, ws://192.168.1.150 wss://b512345.magtek.com
The client private key certificate (e.g. filename client.p12) must be accessible to the custom software that makes a secure WebSocket (wss://) connection to the DynaFlex II PED.
For Serial devices, address should be in the form:
PORT=[PORT],
BAUDRATE=[BAUDRATE],
DATABITS=[DATABITS],
PARITY=[PARITY],
STOPBITS=[STOPBITS],
HANDSHAKE=[HANDSHAKE],
STARTINGBYTE=[STARTINGBYTE],
ENDINGBYTE=[ENDINGBYTE],
CRCMODE=[CRCMODE]
certInfo
Certificate information for TLS Trust and WebSocket WSS connection. Optional. See the following for details on installing a certificate chain: DYNAFLEX TLS CERTIFICATE INSTALLATION MANUAL
The client private key certificate (e.g. filename client.p12) must be accessible to the custom software that makes a secure WebSocket (wss://) connection to the DynaFlex II PED.
The client.p12 certificate is not needed if the connection type is not secure WebSocket (ws://)
Return Value:
Returns an IDevice*.
Last updated

