예제 #1
0
        public void Disconnect()
        {
            Logger.GlobalLogger.info("Deconnection d'un robot " + id + "Supression des messages en attente ");
            _connected = false;

            _stateCommunication = StateArduinoComm.STATE_COMM_NONE;
            _MessageEnAttenteEnvoi.Clear();
        }
예제 #2
0
        /*public DateTime DateLastMessageSend
        {
            get { return _dateLastMessageSend; }
            set { this._dateLastMessageSend = value; }
        }*/
        public ArduinoBotComm(byte id)
        {
            Logger.GlobalLogger.info("Create new ArduinoBots id:" + id);
            _MessageEnAttenteEnvoi = new List<MessageProtocol>();
            _id = id;

            _connected = false;

            _stateCommunication = StateArduinoComm.STATE_COMM_NONE;
            //Disconnect(); // Initialisation
        }
예제 #3
0
        /*public DateTime DateLastMessageSend
         * {
         *  get { return _dateLastMessageSend; }
         *  set { this._dateLastMessageSend = value; }
         * }*/


        public ArduinoBotComm(byte id)
        {
            Logger.GlobalLogger.info("Create new ArduinoBots id:" + id);
            _MessageEnAttenteEnvoi = new List <MessageProtocol>();
            _id = id;

            _connected = false;

            _stateCommunication = StateArduinoComm.STATE_COMM_NONE;
            //Disconnect(); // Initialisation
        }
예제 #4
0
        public void Disconnect()
        {
            Logger.GlobalLogger.info("Deconnection d'un robot " + id + "Supression des messages en attente ");
            _connected = false;

            _stateCommunication = StateArduinoComm.STATE_COMM_NONE;
            _MessageEnAttenteEnvoi.Clear();
        }