Query the PED object for device information


Name Description
refreshPedState Retrieves the state of the PED if connectivity with the PED was lost.


Name Description
retries Number of retries when attempting to refresh the PED state.


Name Description
pedStateChangeCallback refreshPedState triggers this callback.It returns if the PED state has changed, for example, if the PED has come online.

PED States

State Description
ped_state_undetected Incorrect IP, cannot detect the PED. This is a final state.
ped_state_detected PED detected, correct serial/IP address.
ped_state_identified Valid PED.
ped_state_registered PED is registered, final result on RegisterPED.
ped_state_config_synced PED is has synchronised it's configuration.
ped_state_wait_reboot_ready PED is rebooting.
ped_state_wait_ready_for_transaction PED must complete another process before it is ready to create a transaction.
ped_state_not_ready PED is busy. This is a final state. 
ped_state_ready_for_transaction PED is ready for transaction.
ped_state_tender PED is busy with a tender.

Result codes

Name Description
ADYEN_LIBRARY_OK Everything is ok, library will poll for updated terminal state.
ADYEN_LIBRARY_CONFIRM_QUERY_PED_STATE_TERMINAL_ID_UNKNOWN Library is currently polling, call is rejected.
ADYEN_LIBRARY_CONFIRM_QUERY_PED_STATE_INVALID_ARGUMENTS Invalid Arguments specified, use a positive number of poll_retries.
ADYEN_FAIL_MALLOC Cannot allocate memory, system out of memory.


Internal communication reference object is illegal.