Estrarre dal codice e mettere in file di configurazione:
il numero di tentativi di retry (4)
il tempo di ritardo tra un retry ed il prossimo (2)
Grazie !
for c in hpsu.commands:
i = 0
while i <= 3:
rc = hpsu.sendCommand(c)
if rc != "KO":
i = 4
response = hpsu.parseCommand(cmd=c, response=rc, verbose=verbose)
resp = hpsu.umConversion(cmd=c, response=response, verbose=verbose)
Estrarre dal codice e mettere in file di configurazione:
Grazie !
for c in hpsu.commands: i = 0 while i <= 3: rc = hpsu.sendCommand(c) if rc != "KO": i = 4 response = hpsu.parseCommand(cmd=c, response=rc, verbose=verbose) resp = hpsu.umConversion(cmd=c, response=response, verbose=verbose)