dht22

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package dht22 provides the mock logic of the dht22 service

Copyright (c) 2016-2018 Roozbeh Farahbod Distributed under the MIT License.

Package dht22 provides the mock logic of the dht22 service

Copyright (c) 2016-2018 Roozbeh Farahbod Distributed under the MIT License.

Package dht22 provides the mock logic of the dht22 service

Copyright (c) 2016-2018 Roozbeh Farahbod Distributed under the MIT License.

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string

BuildTime holds the time of build

View Source
var BuildVersion string

BuildVersion holds the version of this service

View Source
var CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{
	mockCommandLineGroup,
}

CommandLineOptionsGroups holds the CL option groups

View Source
var GitRevision string

GitRevision holds the git revision based on which this service is compiled

Functions

func CalcHeatIndex

func CalcHeatIndex(tempC float64, humidity float64) *float64

CalcHeatIndex calculates the heat index based on temp and humidity.

func CheckVersionFlag

func CheckVersionFlag(api *operations.Dht22MockAPI)

CheckVersionFlag checks if the version flag is set, prints the version and stops the process

func GetMockData

func GetMockData(params operations.GetParams) middleware.Responder

GetMockData returns a mock sensor data

func SetConfig

SetConfig pretends to set the network configuration of the sensor

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL