Skip to main content

Reader configuration

Reader configuration can be updated using configuration files provided by Geopagos.

Create a ReaderConfigurator with a delegate that implements ReaderConfiguratorDelegate:

let readerConfigurator = ReaderConfiguratorFactory.createConfigurator(
delegate: delegate
)

The delegate callbacks request the data needed to complete the configuration. When onConfigurationRequired is called, provide a ReaderConfigurationFiles instance created for the requested reader and configuration type.

QPos firmware​

Create the firmware files with the QPos bundle URL provided by Geopagos:

QposReaderConfigurationFactory.qposFirmwareFiles(firmware: firmwareURL)

MagicPos firmware​

Create the firmware files with the MagicPos bundle URL provided by Geopagos:

MagicPosReaderConfigurationFactory.magicPosFirmwareFiles(firmware: firmwareURL)

If the bundle does not contain a configuration matching the requested reader and configuration type, the SDK reports a recoverable .invalidConfiguration error.

Keep the reader charged​

Firmware updates can take between four and ten minutes. Ask the user to keep the reader connected to power during the update to prevent a low-battery disconnection. Connecting QPos readers to a power source is mandatory for firmware updates.