protected override void OnSensorValueChanged(SingleValueSensorBase sensor) { JsonObject data = CreateDataPackage(sensor.Id, EventType.SensorValueChanged); data.SetNamedValue("kind", JsonValue.CreateStringValue(sensor.GetType().Name)); data.SetNamedValue("value", JsonValue.CreateNumberValue(sensor.Value)); Task.Run(() => SendToAzureEventHubAsync(data)); }
protected virtual void OnSensorValueChanged(SingleValueSensorBase sensor) { }