The Arkos next-gen SDK now supports concert protocol. To set the protocol you need to start with the following steps below:
You will be provided with these two libraries: concert_library.aar and TCP_socket_library.aar
You can refer to the documentation below for the functionalities provided and also the dependencies needed.
It is to be noted that these libraries cover IP/Ethernet, WIFI, and Bluetooth compatibility only. RS-232 compatibility will be provided as source code in ArkosPay.
ArkosPay currently has a Payment System singleton where the entire application is initialized as a singleton for only one instance to be available throughout the whole app at any time. A new parent, ConcertHandler, has been provided and is responsible for creating the protocol method you want to use.
Upon starting Arkospay, you will have no instance of Concert protocol types/methods running. You can navigate to settings → Concert connection types
Choose the type of protocol you want → IP ethernet in this example
Upon choosing IP ethernet, a port and protocol version will be prompted. Once confirmed you will return to the idle screen and then your instance will be created.
Now that you have a running instance:
You will need to add this
in your assets folder, as the specification has a config defined and this file conforms to the configuration specified in the document.You can refer to the
IPEthernetHandler
.java class how the functions are called and used.