log udp
This commit is contained in:
parent
1857c60e80
commit
9389545986
|
|
@ -256,13 +256,15 @@ namespace AgroBase.Models
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("[UDP] Commnad");
|
//Console.WriteLine($"[UDP] Commnad {JsonConvert.SerializeObject(payload)}");
|
||||||
|
|
||||||
// Só controle entra daqui
|
// Só controle entra daqui
|
||||||
if (type != UdpReliableChannel.TYPE_COMMAND) return;
|
if (type != UdpReliableChannel.TYPE_COMMAND) return;
|
||||||
|
|
||||||
if (!UdpCtrlMessage.TryParse(payload, out var msg)) return;
|
if (!UdpCtrlMessage.TryParse(payload, out var msg)) return;
|
||||||
|
|
||||||
|
//Console.WriteLine(JsonConvert.SerializeObject(msg));
|
||||||
|
|
||||||
// Comando válido (controle) atualiza o failsafe
|
// Comando válido (controle) atualiza o failsafe
|
||||||
Interlocked.Exchange(ref _lastValidCmdTicksUtc, DateTime.UtcNow.Ticks);
|
Interlocked.Exchange(ref _lastValidCmdTicksUtc, DateTime.UtcNow.Ticks);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue