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(); }
/*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 }
/*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 }