Added some documentation strings.

This commit is contained in:
2021-10-16 18:37:31 -04:00
parent 222bb61103
commit 2ee1f0f1f4
3 changed files with 28 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ extension MQTTClient {
)
}
// MARK: - TODO it feels like the subscriptions should happen in the `bootstrap` process.
fileprivate func fetchTemperature(
sensor: TemperatureSensor,
units: PsychrometricEnvironment.Units?
@@ -85,6 +86,7 @@ extension MQTTClient {
}
}
// MARK: - TODO it feels like the subscriptions should happen in the `bootstrap` process.
fileprivate func fetchHumidity(sensor: HumiditySensor) -> EventLoopFuture<RelativeHumidity> {
logger.debug("Adding listener for humidity sensor...")
let subscription = MQTTSubscribeInfoV5.init(