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 ¶
var BuildTime string
BuildTime holds the time of build
var BuildVersion string
BuildVersion holds the version of this service
var CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{
mockCommandLineGroup,
}
CommandLineOptionsGroups holds the CL option groups
var GitRevision string
GitRevision holds the git revision based on which this service is compiled
Functions ¶
func CalcHeatIndex ¶
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 ¶
func SetConfig(params operations.GetConfigParams) middleware.Responder
SetConfig pretends to set the network configuration of the sensor
Types ¶
This section is empty.