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