diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bmxx80.csproj b/NucuCar.Sensors/Environment/Bmxx80/Bmxx80.csproj
deleted file mode 100644
index 3a94229..0000000
--- a/NucuCar.Sensors/Environment/Bmxx80/Bmxx80.csproj
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- netcoreapp2.1
- false
- 8.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $(AdditionalProperties);RuntimeIdentifier=linux
-
-
-
-
-
-
-
-
diff --git a/NucuCar.Sensors/Grpc/GrpcStartup.cs b/NucuCar.Sensors/Grpc/GrpcStartup.cs
index afef179..e26205b 100644
--- a/NucuCar.Sensors/Grpc/GrpcStartup.cs
+++ b/NucuCar.Sensors/Grpc/GrpcStartup.cs
@@ -3,8 +3,8 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
-using NucuCar.Sensors.Environment;
-using NucuCar.Sensors.Health;
+using NucuCar.Sensors.Modules.Environment;
+using NucuCar.Sensors.Modules.Health;
namespace NucuCar.Sensors.Grpc
{
diff --git a/NucuCar.Sensors/Environment/Bme680Config.cs b/NucuCar.Sensors/Modules/Environment/Bme680Config.cs
similarity index 83%
rename from NucuCar.Sensors/Environment/Bme680Config.cs
rename to NucuCar.Sensors/Modules/Environment/Bme680Config.cs
index 4c3b34b..c37c79b 100644
--- a/NucuCar.Sensors/Environment/Bme680Config.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bme680Config.cs
@@ -1,6 +1,6 @@
// ReSharper disable UnusedAutoPropertyAccessor.Global
-namespace NucuCar.Sensors.Environment
+namespace NucuCar.Sensors.Modules.Environment
{
public class Bme680Config
{
diff --git a/NucuCar.Sensors/Environment/Bme680GrpcService.cs b/NucuCar.Sensors/Modules/Environment/Bme680GrpcService.cs
similarity index 96%
rename from NucuCar.Sensors/Environment/Bme680GrpcService.cs
rename to NucuCar.Sensors/Modules/Environment/Bme680GrpcService.cs
index 1b5a80c..b336937 100644
--- a/NucuCar.Sensors/Environment/Bme680GrpcService.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bme680GrpcService.cs
@@ -7,7 +7,7 @@ using NucuCar.Sensors.Abstractions;
using NucuCar.Sensors.Grpc;
using NucuCarSensorsProto;
-namespace NucuCar.Sensors.Environment
+namespace NucuCar.Sensors.Modules.Environment
{
///
/// EnvironmentSensor's gRPC service.
diff --git a/NucuCar.Sensors/Environment/Bme680Sensor.cs b/NucuCar.Sensors/Modules/Environment/Bme680Sensor.cs
similarity index 94%
rename from NucuCar.Sensors/Environment/Bme680Sensor.cs
rename to NucuCar.Sensors/Modules/Environment/Bme680Sensor.cs
index 2bd93e7..868cd6d 100644
--- a/NucuCar.Sensors/Environment/Bme680Sensor.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bme680Sensor.cs
@@ -6,13 +6,13 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Sensors.Environment.Bmxx80;
+using NucuCar.Sensors.Modules.Environment.Bmxx80;
using NucuCarSensorsProto;
-using Bme680 = NucuCar.Sensors.Environment.Bmxx80.Bme680;
-using Bme680PowerMode = NucuCar.Sensors.Environment.Bmxx80.PowerMode.Bme680PowerMode;
-using Sampling = NucuCar.Sensors.Environment.Bmxx80.Sampling;
+using Bme680 = NucuCar.Sensors.Modules.Environment.Bmxx80.Bme680;
+using Bme680PowerMode = NucuCar.Sensors.Modules.Environment.Bmxx80.PowerMode.Bme680PowerMode;
+using Sampling = NucuCar.Sensors.Modules.Environment.Bmxx80.Sampling;
-namespace NucuCar.Sensors.Environment
+namespace NucuCar.Sensors.Modules.Environment
{
internal class Bme680MeasurementData
{
diff --git a/NucuCar.Sensors/Environment/Bme680Worker.cs b/NucuCar.Sensors/Modules/Environment/Bme680Worker.cs
similarity index 87%
rename from NucuCar.Sensors/Environment/Bme680Worker.cs
rename to NucuCar.Sensors/Modules/Environment/Bme680Worker.cs
index cbd492a..e4439f0 100644
--- a/NucuCar.Sensors/Environment/Bme680Worker.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bme680Worker.cs
@@ -1,8 +1,7 @@
using Microsoft.Extensions.Logging;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Telemetry;
-namespace NucuCar.Sensors.Environment
+namespace NucuCar.Sensors.Modules.Environment
{
public class Bme680Worker : SensorWorker
{
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bme280.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme280.cs
similarity index 96%
rename from NucuCar.Sensors/Environment/Bmxx80/Bme280.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bme280.cs
index 3b51d56..6d2d08b 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bme280.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme280.cs
@@ -4,10 +4,10 @@
using System;
using System.Device.I2c;
-using NucuCar.Sensors.Environment.Bmxx80.CalibrationData;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Represents a BME280 temperature, barometric pressure and humidity sensor.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bme680.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680.cs
similarity index 98%
rename from NucuCar.Sensors/Environment/Bmxx80/Bme680.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680.cs
index c2adc1f..6a2e1dc 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bme680.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680.cs
@@ -6,13 +6,13 @@ using System;
using System.Collections.Generic;
using System.Device.I2c;
using System.Linq;
-using NucuCar.Sensors.Environment.Bmxx80.CalibrationData;
-using NucuCar.Sensors.Environment.Bmxx80.FilteringMode;
-using NucuCar.Sensors.Environment.Bmxx80.PowerMode;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Units;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.FilteringMode;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.PowerMode;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Units;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Represents a BME680 temperature, pressure, relative humidity and VOC gas sensor.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfile.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfile.cs
similarity index 96%
rename from NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfile.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfile.cs
index 5c0abb9..f55eac1 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfile.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfile.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// 10 addressable heater profiles stored on the Bme680.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfileConfig.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfileConfig.cs
similarity index 97%
rename from NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfileConfig.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfileConfig.cs
index d962c96..e991cec 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bme680HeaterProfileConfig.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680HeaterProfileConfig.cs
@@ -4,7 +4,7 @@
using System;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// The heater profile configuration saved on the device.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bme680Mask.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680Mask.cs
similarity index 92%
rename from NucuCar.Sensors/Environment/Bmxx80/Bme680Mask.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680Mask.cs
index 30cdaa9..c04fa13 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bme680Mask.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bme680Mask.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
internal enum Bme680Mask : byte
{
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bmp280.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmp280.cs
similarity index 92%
rename from NucuCar.Sensors/Environment/Bmxx80/Bmp280.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bmp280.cs
index d264fb9..c7e354e 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bmp280.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmp280.cs
@@ -3,9 +3,8 @@
// See the LICENSE file in the project root for more information.
using System.Device.I2c;
-using Iot.Device.Bmxx80;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Represents a BME280 temperature and barometric pressure sensor.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bmx280Base.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmx280Base.cs
similarity index 86%
rename from NucuCar.Sensors/Environment/Bmxx80/Bmx280Base.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bmx280Base.cs
index 8758579..aee8a73 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bmx280Base.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmx280Base.cs
@@ -8,17 +8,17 @@
using System;
using System.Device.I2c;
using System.IO;
-using NucuCar.Sensors.Environment.Bmxx80.FilteringMode;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Units;
-using Bmx280PowerMode = NucuCar.Sensors.Environment.Bmxx80.PowerMode.Bmx280PowerMode;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.FilteringMode;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Units;
+using Bmx280PowerMode = NucuCar.Sensors.Modules.Environment.Bmxx80.PowerMode.Bmx280PowerMode;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Represents the core functionality of the Bmx280 family.
///
- public abstract class Bmx280Base : NucuCar.Sensors.Environment.Bmxx80.Bmxx80Base
+ public abstract class Bmx280Base : Bmxx80Base
{
///
/// Default I2C bus address.
@@ -36,7 +36,7 @@ namespace NucuCar.Sensors.Environment.Bmxx80
protected static readonly int[] s_osToMeasCycles = { 0, 7, 9, 14, 23, 44 };
private Bmx280FilteringMode _filteringMode;
- private NucuCar.Sensors.Environment.Bmxx80.StandbyTime _standbyTime;
+ private StandbyTime _standbyTime;
///
/// Initializes a new instance of the class.
@@ -72,8 +72,8 @@ namespace NucuCar.Sensors.Environment.Bmxx80
///
/// Gets or sets the standby time between two consecutive measurements.
///
- /// Thrown when the is set to an undefined mode.
- public NucuCar.Sensors.Environment.Bmxx80.StandbyTime StandbyTime
+ /// Thrown when the is set to an undefined mode.
+ public StandbyTime StandbyTime
{
get => _standbyTime;
set
@@ -94,13 +94,13 @@ namespace NucuCar.Sensors.Environment.Bmxx80
/// Reads the temperature. A return value indicates whether the reading succeeded.
///
///
- /// Contains the measured temperature if the was not set to .
+ /// Contains the measured temperature if the was not set to .
/// Contains otherwise.
///
/// true
if measurement was not skipped, otherwise false
.
public override bool TryReadTemperature(out Temperature temperature)
{
- if (TemperatureSampling == NucuCar.Sensors.Environment.Bmxx80.Sampling.Skipped)
+ if (TemperatureSampling == Sampling.Skipped)
{
temperature = Temperature.FromCelsius(double.NaN);
return false;
@@ -142,13 +142,13 @@ namespace NucuCar.Sensors.Environment.Bmxx80
/// Reads the pressure. A return value indicates whether the reading succeeded.
///
///
- /// Contains the measured pressure in Pa if the was not set to .
+ /// Contains the measured pressure in Pa if the was not set to .
/// Contains otherwise.
///
/// true
if measurement was not skipped, otherwise false
.
public override bool TryReadPressure(out Pressure pressure)
{
- if (PressureSampling == NucuCar.Sensors.Environment.Bmxx80.Sampling.Skipped)
+ if (PressureSampling == Sampling.Skipped)
{
pressure = Pressure.FromPascal(double.NaN);
return false;
@@ -173,7 +173,7 @@ namespace NucuCar.Sensors.Environment.Bmxx80
///
/// Sea-level pressure
///
- /// Contains the calculated metres above sea-level if the was not set to .
+ /// Contains the calculated metres above sea-level if the was not set to .
/// Contains otherwise.
///
/// true
if pressure measurement was not skipped, otherwise false
.
@@ -196,7 +196,7 @@ namespace NucuCar.Sensors.Environment.Bmxx80
/// Calculates the altitude in meters from the mean sea-level pressure.
///
///
- /// Contains the calculated metres above sea-level if the was not set to .
+ /// Contains the calculated metres above sea-level if the was not set to .
/// Contains otherwise.
///
/// true
if pressure measurement was not skipped, otherwise false
.
@@ -208,8 +208,8 @@ namespace NucuCar.Sensors.Environment.Bmxx80
///
/// Get the current status of the device.
///
- /// The .
- public NucuCar.Sensors.Environment.Bmxx80.DeviceStatus ReadStatus()
+ /// The .
+ public DeviceStatus ReadStatus()
{
var status = Read8BitsFromRegister((byte)Bmx280Register.STATUS);
@@ -219,7 +219,7 @@ namespace NucuCar.Sensors.Environment.Bmxx80
// Bit 0.
var imageUpdating = (status & 1) == 1;
- return new NucuCar.Sensors.Environment.Bmxx80.DeviceStatus
+ return new DeviceStatus
{
ImageUpdating = imageUpdating,
Measuring = measuring
@@ -260,7 +260,7 @@ namespace NucuCar.Sensors.Environment.Bmxx80
{
base.SetDefaultConfiguration();
FilterMode = Bmx280FilteringMode.Off;
- StandbyTime = NucuCar.Sensors.Environment.Bmxx80.StandbyTime.Ms125;
+ StandbyTime = StandbyTime.Ms125;
}
///
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Bmxx80Base.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmxx80Base.cs
similarity index 96%
rename from NucuCar.Sensors/Environment/Bmxx80/Bmxx80Base.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Bmxx80Base.cs
index ca08946..6e2bca1 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Bmxx80Base.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Bmxx80Base.cs
@@ -6,11 +6,11 @@ using System;
using System.Buffers.Binary;
using System.Device.I2c;
using System.IO;
-using NucuCar.Sensors.Environment.Bmxx80.CalibrationData;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Units;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Units;
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Represents the core functionality of the Bmxx80 family.
@@ -306,15 +306,15 @@ namespace NucuCar.Sensors.Environment.Bmxx80
{
switch (this)
{
- case NucuCar.Sensors.Environment.Bmxx80.Bme280 _:
+ case Bme280 _:
_calibrationData = new Bme280CalibrationData();
_controlRegister = (byte)Bmx280Register.CTRL_MEAS;
break;
- case NucuCar.Sensors.Environment.Bmxx80.Bmp280 _:
+ case Bmp280 _:
_calibrationData = new Bmp280CalibrationData();
_controlRegister = (byte)Bmx280Register.CTRL_MEAS;
break;
- case NucuCar.Sensors.Environment.Bmxx80.Bme680 _:
+ case Bme680 _:
_calibrationData = new Bme680CalibrationData();
_controlRegister = (byte)Bme680Register.CTRL_MEAS;
break;
diff --git a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs
similarity index 88%
rename from NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs
index 52155b7..4d761a9 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme280CalibrationData.cs
@@ -2,12 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using Iot.Device.Bmxx80;
-using Iot.Device.Bmxx80.CalibrationData;
-using Iot.Device.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
-namespace NucuCar.Sensors.Environment.Bmxx80.CalibrationData
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData
{
///
/// Calibration data for the BME280.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs
similarity index 95%
rename from NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs
index df7eba0..338a815 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bme680CalibrationData.cs
@@ -2,12 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using Iot.Device.Bmxx80;
-using Iot.Device.Bmxx80.CalibrationData;
-using Iot.Device.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
-namespace NucuCar.Sensors.Environment.Bmxx80.CalibrationData
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData
{
///
/// Calibration data for the .
diff --git a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs
similarity index 89%
rename from NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs
index 6ca4207..a5a336e 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmp280CalibrationData.cs
@@ -2,12 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using Iot.Device.Bmxx80;
-using Iot.Device.Bmxx80.CalibrationData;
-using Iot.Device.Bmxx80.Register;
-using NucuCar.Sensors.Environment.Bmxx80.Register;
+using NucuCar.Sensors.Modules.Environment.Bmxx80.Register;
-namespace NucuCar.Sensors.Environment.Bmxx80.CalibrationData
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData
{
///
/// Calibration data for the BMP280.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs
similarity index 92%
rename from NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs
index 1cf1d49..cc7df71 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/CalibrationData/Bmxx80CalibrationData.cs
@@ -2,9 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-using Iot.Device.Bmxx80;
-
-namespace NucuCar.Sensors.Environment.Bmxx80.CalibrationData
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.CalibrationData
{
///
/// Calibration data for the Bmxx80 family.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/DeviceStatus.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/DeviceStatus.cs
similarity index 93%
rename from NucuCar.Sensors/Environment/Bmxx80/DeviceStatus.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/DeviceStatus.cs
index 72d4db0..413ca9d 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/DeviceStatus.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/DeviceStatus.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Indicates the status of the device.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs
similarity index 94%
rename from NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs
index 946e290..f20d5ec 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bme680FilteringMode.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.FilteringMode
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.FilteringMode
{
///
/// IIR filter coefficient. The higher the coefficient, the slower the sensors
diff --git a/NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs
similarity index 94%
rename from NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs
index 36c2b9f..ae9c578 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/FilteringMode/Bmx280FilteringMode.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.FilteringMode
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.FilteringMode
{
///
/// Bmx280 devices feature an internal IIR filter.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs
similarity index 93%
rename from NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs
index 28d7bcf..3f6cc72 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bme680PowerMode.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.PowerMode
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.PowerMode
{
///
/// Sensor power mode.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs
similarity index 93%
rename from NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs
index e779715..161424d 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/PowerMode/Bmx280PowerMode.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.PowerMode
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.PowerMode
{
///
/// Sensor power mode.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/README.md b/NucuCar.Sensors/Modules/Environment/Bmxx80/README.md
similarity index 100%
rename from NucuCar.Sensors/Environment/Bmxx80/README.md
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/README.md
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Register/Bme280Register.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme280Register.cs
similarity index 89%
rename from NucuCar.Sensors/Environment/Bmxx80/Register/Bme280Register.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme280Register.cs
index cbe2c37..1f765e6 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Register/Bme280Register.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme280Register.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.Register
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Register
{
///
/// General control registers for the BME280.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Register/Bme680Register.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme680Register.cs
similarity index 95%
rename from NucuCar.Sensors/Environment/Bmxx80/Register/Bme680Register.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme680Register.cs
index dfbdcf3..c3bf5cc 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Register/Bme680Register.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bme680Register.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.Register
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Register
{
///
/// General control registers for the BME680.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Register/Bmx280Register.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmx280Register.cs
similarity index 92%
rename from NucuCar.Sensors/Environment/Bmxx80/Register/Bmx280Register.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmx280Register.cs
index 72a78f0..2497b11 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Register/Bmx280Register.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmx280Register.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.Register
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Register
{
///
/// Register shared by the Bmx280 family.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Register/Bmxx80Register.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmxx80Register.cs
similarity index 86%
rename from NucuCar.Sensors/Environment/Bmxx80/Register/Bmxx80Register.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmxx80Register.cs
index a9cffcc..dcb2876 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Register/Bmxx80Register.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Register/Bmxx80Register.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80.Register
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Register
{
///
/// Registers shared in the Bmxx80 family.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Sampling.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Sampling.cs
similarity index 95%
rename from NucuCar.Sensors/Environment/Bmxx80/Sampling.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Sampling.cs
index b3d54d5..9dd1311 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Sampling.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Sampling.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Oversampling settings.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/StandbyTime.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/StandbyTime.cs
similarity index 95%
rename from NucuCar.Sensors/Environment/Bmxx80/StandbyTime.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/StandbyTime.cs
index 3907635..69d4167 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/StandbyTime.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/StandbyTime.cs
@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-namespace NucuCar.Sensors.Environment.Bmxx80
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80
{
///
/// Controls the inactive duration in normal mode.
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Units/Pressure.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Pressure.cs
similarity index 98%
rename from NucuCar.Sensors/Environment/Bmxx80/Units/Pressure.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Pressure.cs
index 862484c..e1ab6b0 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Units/Pressure.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Pressure.cs
@@ -1,4 +1,4 @@
-namespace NucuCar.Sensors.Environment.Bmxx80.Units
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Units
{
///
/// Structure representing pressure
diff --git a/NucuCar.Sensors/Environment/Bmxx80/Units/Temperature.cs b/NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Temperature.cs
similarity index 96%
rename from NucuCar.Sensors/Environment/Bmxx80/Units/Temperature.cs
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Temperature.cs
index 763dfbf..5e5df8a 100644
--- a/NucuCar.Sensors/Environment/Bmxx80/Units/Temperature.cs
+++ b/NucuCar.Sensors/Modules/Environment/Bmxx80/Units/Temperature.cs
@@ -1,4 +1,4 @@
-namespace NucuCar.Sensors.Environment.Bmxx80.Units
+namespace NucuCar.Sensors.Modules.Environment.Bmxx80.Units
{
public struct Temperature
{
diff --git a/NucuCar.Sensors/Environment/Bmxx80/category.txt b/NucuCar.Sensors/Modules/Environment/Bmxx80/category.txt
similarity index 100%
rename from NucuCar.Sensors/Environment/Bmxx80/category.txt
rename to NucuCar.Sensors/Modules/Environment/Bmxx80/category.txt
diff --git a/NucuCar.Sensors/Health/CpuTempConfig.cs b/NucuCar.Sensors/Modules/Health/CpuTempConfig.cs
similarity index 84%
rename from NucuCar.Sensors/Health/CpuTempConfig.cs
rename to NucuCar.Sensors/Modules/Health/CpuTempConfig.cs
index 554cf7e..4e21ac4 100644
--- a/NucuCar.Sensors/Health/CpuTempConfig.cs
+++ b/NucuCar.Sensors/Modules/Health/CpuTempConfig.cs
@@ -1,5 +1,5 @@
// ReSharper disable UnusedAutoPropertyAccessor.Global
-namespace NucuCar.Sensors.Health
+namespace NucuCar.Sensors.Modules.Health
{
public class CpuTempConfig
{
diff --git a/NucuCar.Sensors/Health/CpuTempGrpcService.cs b/NucuCar.Sensors/Modules/Health/CpuTempGrpcService.cs
similarity index 96%
rename from NucuCar.Sensors/Health/CpuTempGrpcService.cs
rename to NucuCar.Sensors/Modules/Health/CpuTempGrpcService.cs
index 898efa7..5118de4 100644
--- a/NucuCar.Sensors/Health/CpuTempGrpcService.cs
+++ b/NucuCar.Sensors/Modules/Health/CpuTempGrpcService.cs
@@ -7,7 +7,7 @@ using NucuCar.Sensors.Abstractions;
using NucuCar.Sensors.Grpc;
using NucuCarSensorsProto;
-namespace NucuCar.Sensors.Health
+namespace NucuCar.Sensors.Modules.Health
{
public class CpuTempGrpcService : HealthSensorGrpcService.HealthSensorGrpcServiceBase
{
diff --git a/NucuCar.Sensors/Health/CpuTempSensor.cs b/NucuCar.Sensors/Modules/Health/CpuTempSensor.cs
similarity index 98%
rename from NucuCar.Sensors/Health/CpuTempSensor.cs
rename to NucuCar.Sensors/Modules/Health/CpuTempSensor.cs
index d4e54e7..d79e142 100644
--- a/NucuCar.Sensors/Health/CpuTempSensor.cs
+++ b/NucuCar.Sensors/Modules/Health/CpuTempSensor.cs
@@ -8,7 +8,7 @@ using Newtonsoft.Json;
using NucuCar.Sensors.Abstractions;
using NucuCarSensorsProto;
-namespace NucuCar.Sensors.Health
+namespace NucuCar.Sensors.Modules.Health
{
public class CpuTempSensor : GenericTelemeterSensor, ISensor
{
diff --git a/NucuCar.Sensors/Health/CpuTempWorker.cs b/NucuCar.Sensors/Modules/Health/CpuTempWorker.cs
similarity index 88%
rename from NucuCar.Sensors/Health/CpuTempWorker.cs
rename to NucuCar.Sensors/Modules/Health/CpuTempWorker.cs
index 18c2257..eb5777d 100644
--- a/NucuCar.Sensors/Health/CpuTempWorker.cs
+++ b/NucuCar.Sensors/Modules/Health/CpuTempWorker.cs
@@ -1,8 +1,7 @@
using Microsoft.Extensions.Logging;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Telemetry;
-namespace NucuCar.Sensors.Health
+namespace NucuCar.Sensors.Modules.Health
{
public class CpuTempWorker : SensorWorker
{
diff --git a/NucuCar.Sensors/NucuCar.Sensors.csproj b/NucuCar.Sensors/NucuCar.Sensors.csproj
index f02c1dd..9a1cfd5 100644
--- a/NucuCar.Sensors/NucuCar.Sensors.csproj
+++ b/NucuCar.Sensors/NucuCar.Sensors.csproj
@@ -81,8 +81,4 @@
-
-
-
-
diff --git a/NucuCar.Sensors/Program.cs b/NucuCar.Sensors/Program.cs
index f68923b..06eceaf 100644
--- a/NucuCar.Sensors/Program.cs
+++ b/NucuCar.Sensors/Program.cs
@@ -2,9 +2,9 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Sensors.Environment;
using NucuCar.Sensors.Grpc;
-using NucuCar.Sensors.Health;
+using NucuCar.Sensors.Modules.Environment;
+using NucuCar.Sensors.Modules.Health;
using NucuCar.Telemetry;
namespace NucuCar.Sensors
diff --git a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680GrpcServiceTest.cs b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680GrpcServiceTest.cs
similarity index 98%
rename from NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680GrpcServiceTest.cs
rename to NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680GrpcServiceTest.cs
index a2e8210..b836c11 100644
--- a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680GrpcServiceTest.cs
+++ b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680GrpcServiceTest.cs
@@ -3,7 +3,7 @@ using Microsoft.Extensions.Options;
using Moq;
using NucuCar.Sensors;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Sensors.Environment;
+using NucuCar.Sensors.Modules.Environment;
using NucuCarSensorsProto;
using Xunit;
diff --git a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680WorkerTests.cs b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680WorkerTests.cs
similarity index 95%
rename from NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680WorkerTests.cs
rename to NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680WorkerTests.cs
index 214a785..b5255be 100644
--- a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/Bme680WorkerTests.cs
+++ b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/Bme680WorkerTests.cs
@@ -3,13 +3,13 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Moq;
-using NucuCar.Sensors;
using NucuCar.Sensors.Abstractions;
-using NucuCar.Sensors.Environment;
+using NucuCar.Sensors.Modules.Environment;
+using NucuCar.UnitTests.NucuCar.Sensors.Tests.EnvironmentSensor.Tests;
using NucuCarSensorsProto;
using Xunit;
-namespace NucuCar.UnitTests.NucuCar.Sensors.Tests.EnvironmentSensor.Tests
+namespace NucuCar.UnitTests.NucuCar.Sensors.Tests.EnvironmentSensor
{
public class Bme680WorkerTest
{
diff --git a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/TestBme680Sensor.cs b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/TestBme680Sensor.cs
similarity index 93%
rename from NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/TestBme680Sensor.cs
rename to NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/TestBme680Sensor.cs
index fa1bf60..120d3bb 100644
--- a/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor.Tests/TestBme680Sensor.cs
+++ b/NucuCar.UnitTests/NucuCar.Sensors.Tests/EnvironmentSensor/TestBme680Sensor.cs
@@ -1,5 +1,5 @@
using System.Threading.Tasks;
-using NucuCar.Sensors.Environment;
+using NucuCar.Sensors.Modules.Environment;
using NucuCarSensorsProto;
namespace NucuCar.UnitTests.NucuCar.Sensors.Tests.EnvironmentSensor.Tests