Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.38 KB

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.