public Bluetooth(bool _isDebug) { status_message = string.Empty; isDebug = _isDebug; Bluetooth_State = BLUETOOTH_STATE.DISCONNECTED; oDtc = new Dtc(); InitCommands = new List <string> { "?\r", // Init "ATZ\r", // Reset "ATL0\r", // Linefeed off "ATSP0", // Search for protocol "ATS0", // Remove spaces from ecu responses "0100\r" // Keep alive (optional) }; }
public static void SetBluetoothState(BLUETOOTH_STATE _Bluetooth_State) { Bluetooth_State = _Bluetooth_State; }