esp-dht22-mock

module
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

README

DHT22 Mock Server

master develop
Build Status Build Status

This is a mock service for simulating temperature and humidity sensor boards programmed with
home-IoT/esp-dht22.

API

The service offers a very simple API which is specified in the swagger.yml file:

Reading

GET / provides the current (imaginary) reading of the sensor.

Example response:

{
    "deltaTime": 0,
    "device": "dht22-03",
    "dht22": {
        "heatIndex": 25.59,
        "humidity": 96.62,
        "temperature": 25.05
    },
"stale": 0
}

See home-IoT/esp-dht22 for details.

WiFi Configuration

GET /config?ssid=<SSID>&password=<PASSWORD> fakes configuration of the board with a new SSID and an optional password. See home-IoT/esp-dht22 for details.

License

The code is published under an MIT license.

Contributions

Please report issues or feature requests using Github issues. Code contributions can be done using pull requests.

Directories

Path Synopsis
gen
restapi
Package restapi esp-dht22 Schemes: http Host: localhost BasePath: / Version: 1.0.0 Consumes: - application/json Produces: - application/json swagger:meta
Package restapi esp-dht22 Schemes: http Host: localhost BasePath: / Version: 1.0.0 Consumes: - application/json Produces: - application/json swagger:meta
internal
dht22
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.

Jump to

Keyboard shortcuts

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