bozza metodi gestione chiamate da IOB Gateway x reboot e restart CNC
This commit is contained in:
@@ -190,5 +190,34 @@ namespace MP_IO.Controllers
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Restituisce il (primo) codice IOB da dover gestire (se un IOBMAN chiede di gestirne uno in +...)
|
||||
/// </summary>
|
||||
/// <param name="GWIP">IP del Gateway</param>
|
||||
/// <returns></returns>
|
||||
public string getIob2call(string GWIP)
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
// !!!FARE!!! temporanemanete genera a caso vuoto o 3000 x permettere test... altrimenti gestisce VERA coda... secondi pari...
|
||||
int resto = 0;
|
||||
Math.DivRem(DateTime.Now.Second, 2, out resto);
|
||||
if (resto == 0) answ = "3000";
|
||||
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Salva IP del gateway dopo il reboot
|
||||
/// </summary>
|
||||
/// <param name="GWIP">IP del Gateway</param>
|
||||
/// <returns></returns>
|
||||
public string sendRebootGateway(string GWIP)
|
||||
{
|
||||
string answ = "OK";
|
||||
|
||||
// !!!FARE!!! deve salvare il riavvio dell'applicazione GATEWAY multiclient
|
||||
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user