private void _pi_CompletedAngle(RaspberryHardware sender, int counter)
 {
     Console.WriteLine("Angle completed!");
     _chat.SendMessage(new ChatMessage()
     {
         MessageBody = "Angle Completed!",
         Recipient   = new UserViewModel()
         {
             Username = "******", Nick = "TDR"
         }
     });
 }
        public void Job()
        {
            LoggerHandler.Init(new[] { (Action <string>)Console.WriteLine }, "" /*GetAvailableLogFilename(logFilePath)*/,
                               minLogLevel: LogLevel.Warn);
            _chat = new ChatClient(settings.TcpServerIp, 10240, "raspberry", "parola01");
            _piHW = new RaspberryHardware(settings.PwmPeriod, settings.PwmHighDuration, settings.LinesToSkip);

            BindEvents();

            _chat.Connect();
            _piHW.Start();

            _working = true;
            while (_working)
            {
                Console.Write("&:");
                var line = Console.ReadLine();
                ProcessCommand(line);
            }
        }