feat: Adds MQTTConnectionServiceTests

This commit is contained in:
2024-11-09 10:30:25 -05:00
parent 6c5115dcde
commit e2683d3f06
3 changed files with 46 additions and 23 deletions

View File

@@ -19,6 +19,11 @@ public actor SensorsService: Service {
self.sensors = sensors
}
/// The entry-point of the service.
///
/// This method is called to start the service and begin
/// listening for sensor value changes then publishing the dew-point
/// and enthalpy values of the sensors.
public func run() async throws {
guard client.isActive() else {
throw MQTTClientNotConnected()