private void Broadcast(object sender, ElapsedEventArgs args) { var device = _json.Serialize(_currentInfo); var encoding = new ASCIIEncoding(); Byte[] bytes = encoding.GetBytes(device); _udpClient.Send(bytes, bytes.Length, _endPoint); }