Skip to content

Commit cd7e4c3

Browse files
authored
Merge pull request #103 from WildernessLabs/bug/temp-interface-change
changed temp sensor itnerface
2 parents 0aa84fc + 6233ae1 commit cd7e4c3

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

Source/Meadow.Clima/Hardware/ClimaHardwareBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public abstract class ClimaHardwareBase : IClimaHardware
1818
{
1919
private IConnector?[]? _connectors;
2020
private Bme688? _atmosphericSensor;
21-
private ITemperatureSensor? _temperatureSensor;
21+
private ISamplingTemperatureSensor? _temperatureSensor;
2222
private IHumiditySensor? _humiditySensor;
2323
private IBarometricPressureSensor? _barometricPressureSensor;
2424
private IGasResistanceSensor? _gasResistanceSensor;
@@ -40,7 +40,7 @@ public abstract class ClimaHardwareBase : IClimaHardware
4040
public Bme688? AtmosphericSensor => GetAtmosphericSensor();
4141

4242
/// <inheritdoc/>
43-
public ITemperatureSensor? TemperatureSensor => GetTemperatureSensor();
43+
public ISamplingTemperatureSensor? TemperatureSensor => GetTemperatureSensor();
4444

4545
/// <inheritdoc/>
4646
public IHumiditySensor? HumiditySensor => GetHumiditySensor();
@@ -123,7 +123,7 @@ public IConnector?[] Connectors
123123
return _atmosphericSensor;
124124
}
125125

126-
private ITemperatureSensor? GetTemperatureSensor()
126+
private ISamplingTemperatureSensor? GetTemperatureSensor()
127127
{
128128
if (_temperatureSensor == null)
129129
{

Source/Meadow.Clima/Hardware/IClimaHardware.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,75 +16,75 @@ public interface IClimaHardware : IMeadowAppEmbeddedHardware
1616
/// <summary>
1717
/// The I2C Bus
1818
/// </summary>
19-
public II2cBus I2cBus { get; }
19+
II2cBus I2cBus { get; }
2020

2121
/// <summary>
2222
/// Gets the ITemperatureSensor on the Clima board
2323
/// </summary>
24-
public ITemperatureSensor? TemperatureSensor { get; }
24+
ISamplingTemperatureSensor? TemperatureSensor { get; }
2525

2626
/// <summary>
2727
/// Gets the IHumiditySensor on the Clima board
2828
/// </summary>
29-
public IHumiditySensor? HumiditySensor { get; }
29+
IHumiditySensor? HumiditySensor { get; }
3030

3131
/// <summary>
3232
/// Gets the IBarometricPressureSensor on the Clima board
3333
/// </summary>
34-
public IBarometricPressureSensor? BarometricPressureSensor { get; }
34+
IBarometricPressureSensor? BarometricPressureSensor { get; }
3535

3636
/// <summary>
3737
/// Gets the IGasResistanceSensor on the Clima board
3838
/// </summary>
39-
public IGasResistanceSensor? GasResistanceSensor { get; }
39+
IGasResistanceSensor? GasResistanceSensor { get; }
4040

4141
/// <summary>
4242
/// Gets the ICO2ConcentrationSensor on the Clima board
4343
/// </summary>
44-
public ICO2ConcentrationSensor? CO2ConcentrationSensor { get; }
44+
ICO2ConcentrationSensor? CO2ConcentrationSensor { get; }
4545

4646
/// <summary>
4747
/// The Neo GNSS sensor
4848
/// </summary>
49-
public NeoM8? Gnss { get; }
49+
NeoM8? Gnss { get; }
5050

5151
/// <summary>
5252
/// The Wind Vane on the Clima board
5353
/// </summary>
54-
public IWindVane? WindVane { get; }
54+
IWindVane? WindVane { get; }
5555

5656
/// <summary>
5757
/// The Switching Rain Gauge on the Clima board
5858
/// </summary>
59-
public IRainGauge? RainGauge { get; }
59+
IRainGauge? RainGauge { get; }
6060

6161
/// <summary>
6262
/// The Switching Anemometer on the Clima board
6363
/// </summary>
64-
public IAnemometer? Anemometer { get; }
64+
IAnemometer? Anemometer { get; }
6565

6666
/// <summary>
6767
/// The Solar Voltage Input on the Clima board
6868
/// </summary>
69-
public IObservableAnalogInputPort? SolarVoltageInput { get; }
69+
IObservableAnalogInputPort? SolarVoltageInput { get; }
7070

7171
/// <summary>
7272
/// The Battery Voltage Input on the Clima board
7373
/// </summary>
74-
public IObservableAnalogInputPort? BatteryVoltageInput { get; }
74+
IObservableAnalogInputPort? BatteryVoltageInput { get; }
7575

7676
/// <summary>
7777
/// The RGB PWM LED on the Clima board
7878
/// </summary>
79-
public IRgbPwmLed? RgbLed { get; }
79+
IRgbPwmLed? RgbLed { get; }
8080

8181
/// <summary>
8282
/// Gets the Qwiic connector on the Clima board.
8383
/// </summary>
84-
public I2cConnector? Qwiic { get; }
84+
I2cConnector? Qwiic { get; }
8585

8686
/// <summary>
8787
/// The hardware revision string for the Clima board
8888
/// </summary>
89-
public string RevisionString { get; }
89+
string RevisionString { get; }
9090
}

0 commit comments

Comments
 (0)