public NXTProtocol(object s, NXTStreamType stype) { stream = s; streamType = stype; cmdThread = new Thread(CommandWorker); lsGetStatusDelegate = null; lsReadDelegate = null; ultrasonicDelegate = null; batteryLevelDelegate = null; getVersionDelegate = null; getOutputDelegate = null; getInputDelegate = null; messageReadDelegate = null; keepAliveDelegate = null; }