Initialization
import de.wirecard.ecr.EcrSdk var ecr: EcrSdk var ecrIp: String = "127.0.0.1" // IP address of ecr device var ecrPort: Int = 7890 // device port ecr = EcrSdkFactory.createTcpIp(ecrIp, ecrPort)
import Ecr let device = TcpIpDevice(ip: "172.20.10.105", port: 7890) let ecr = Ecr<TcpIpDevice, JsonWrapper>(device: device) //TcpIpDevice - Type of the Communication protocol to be used for POS devices //JsonWrapper - Type of Messages used for the POS communication