Exemple #1
0
        public SerialProcess(char beginMarker, char endMarker, string portname)
        {
            MessageBuilder messageBuilder = new MessageBuilder(beginMarker, endMarker);

            this.portname   = portname;
            serialMessenger = new SerialMessenger(portname, 9600, messageBuilder);
        }
 public CommandHandling(string command, SerialMessenger messenger)
 {
     Command         = command;
     SerialMessenger = messenger;
     Database        = new Database();
     Data            = CommandStringTrimmer(command);
     localSafe       = new LocalSafe();
 }