diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index c05cdbd2..0ac3a6f3 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -190,5 +190,34 @@ namespace MP_IO.Controllers } return answ; } + /// + /// Restituisce il (primo) codice IOB da dover gestire (se un IOBMAN chiede di gestirne uno in +...) + /// + /// IP del Gateway + /// + 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; + } + /// + /// Salva IP del gateway dopo il reboot + /// + /// IP del Gateway + /// + public string sendRebootGateway(string GWIP) + { + string answ = "OK"; + + // !!!FARE!!! deve salvare il riavvio dell'applicazione GATEWAY multiclient + + return answ; + } } } \ No newline at end of file