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