示例#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);
        }
示例#2
0
 public CommandHandling(string command, SerialMessenger messenger)
 {
     Command         = command;
     SerialMessenger = messenger;
     Database        = new Database();
     Data            = CommandStringTrimmer(command);
     localSafe       = new LocalSafe();
 }