public ESP8266ATModem(Stream stream) { this.protocol = new ATProtocol(stream, ESP8266ATParser.GetInstance()); this.protocol.EchoEnabled = false; this.protocol.FrameReceived += protocol_FrameReceived; this.openingConnectionId = -1; this.sendingConnectionId = -1; this.connectionEvent = new ManualResetEvent(false); this.sendEvent = new ManualResetEvent(false); this.sendPromptEvent = new ManualResetEvent(false); this.connectionSyncRoot = new object(); this.connectionStatus = new bool[4]; for (int i = 0; i < this.connectionStatus.Length; i++) { this.connectionStatus[i] = false; } this.previousConnectionStatus = new bool[4]; for (int i = 0; i < this.previousConnectionStatus.Length; i++) { this.previousConnectionStatus[i] = this.connectionStatus[i]; } this.Initialize(); }
public SIM900ATModem(Stream stream) { this.protocol = new ATProtocol(stream, SIM900ATParser.GetInstance()); this.protocol.EchoEnabled = false; this.protocol.FrameReceived += protocol_FrameReceived; this.openingConnectionId = -1; this.sendingConnectionId = -1; this.connectionEvent = new ManualResetEvent(false); this.dnsQueryEvent = new ManualResetEvent(false); this.sendEvent = new ManualResetEvent(false); this.sendPromptEvent = new ManualResetEvent(false); this.connectionSyncRoot = new object(); this.Initialize(); }
public ESP8266ATModem(Stream stream) { this.protocol = new ATProtocol(stream, ESP8266ATParser.GetInstance()); this.protocol.EchoEnabled = false; this.protocol.FrameReceived += protocol_FrameReceived; this.openingConnectionId = -1; this.sendingConnectionId = -1; this.connectionEvent = new ManualResetEvent(false); this.sendEvent = new ManualResetEvent(false); this.sendPromptEvent = new ManualResetEvent(false); this.connectionSyncRoot = new object(); this.connectionStatus = new bool[4]; for (int i = 0; i < this.connectionStatus.Length; i++) this.connectionStatus[i] = false; this.previousConnectionStatus = new bool[4]; for (int i = 0; i < this.previousConnectionStatus.Length; i++) this.previousConnectionStatus[i] = this.connectionStatus[i]; this.Initialize(); }
public ATRequestDataStream(ATProtocol protocol) { this.protocol = protocol; }
public static ATRequestDataStream GetInstance(ATProtocol protocol) { instance.protocol = protocol; return(instance); }
public static ATRequestDataStream GetInstance(ATProtocol protocol) { instance.protocol = protocol; return instance; }