public SensorVolt() { this.status = SensorStatus.BUSY; if (SensorListVolt.VOLTDEV == null) { SensorListVolt.INIT(); } }
public void connect() { SensorListVolt.INIT(); if (SensorListVolt.connected) { this.status = SensorStatus.CONNECTED; } }
public SensorListVolt(DataTable table) { set = table; if (SensorListVolt.VOLTDEV == null) { SensorListVolt.INIT(); } //if (SensorListVolt.VOLTDEV. == 0) //{ // for (int i = 0; i < 4; i++) // { // DataRow row = set.Rows.Add(); // Sensor newSens = new SensorVolt(); // String id = "VOLT:0:" + i; // newSens.setDeviceIdentifier(id); // row.ItemArray = new Object[] { SensorType.GPS, id, newSens }; // } //} }