public SensorBase(string sensorType, string sensorUnit, SensorMakerDen.ValuesPerSample valuesPerSensor, int SampleRateMilliseconds, string name) : base(name == null ? sensorType : name, sensorType, IotType.Sensor) { this.sampleRateMilliseconds = SampleRateMilliseconds; switch (ConfigurationManager.cloudMode) { case ConfigurationManager.Mode.MQTT_Maker: SensorData = new SensorMakerDen(deviceName, sensorType, sensorUnit, valuesPerSensor, topicNamespace + deviceName + "/" + type); break; case ConfigurationManager.Mode.EventHub_Enterprise: SensorData = new SensorConnectTheDots(Guid.NewGuid(), sensorType, sensorUnit, ConfigurationManager.Organisation, sensorType); break; default: break; } #if MF_FRAMEWORK_VERSION_V4_3 SensorThread = new Thread(new ThreadStart(this.MeasureThread)); SensorThread.Priority = ThreadPriority.Highest; #endif }
public SensorBase(string sensorType, string sensorUnit, SensorMakerDen.ValuesPerSample valuesPerSensor, int SampleRateMilliseconds, string name) : base(name == null ? sensorType : name, sensorType, IotType.Sensor) { this.sampleRateMilliseconds = SampleRateMilliseconds; switch (ConfigurationManager.cloudMode) { case ConfigurationManager.Mode.MQTT_Maker: SensorData = new SensorMakerDen(deviceName, sensorType, sensorUnit, valuesPerSensor, topicNamespace + deviceName + "/" + type); break; case ConfigurationManager.Mode.EventHub_Enterprise: SensorData = new SensorConnectTheDots(Guid.NewGuid(), sensorType, sensorUnit, ConfigurationManager.Organisation, sensorType); break; default: break; } #if MF_FRAMEWORK_VERSION_V4_3 SensorThread = new Thread(new ThreadStart(this.MeasureThread)); SensorThread.Priority = ThreadPriority.Highest; #endif }
public SensorItemEventArgs(ISensorTelemetry data) { this.data = data; }
public SensorItemEventArgs(ISensorTelemetry sensorTelemetry) { this.SensorTelemetry = sensorTelemetry; }
public SensorItemEventArgs(ISensorTelemetry data) { this.data = data; }