Putting it all together#
In this assignment, you will put combine all you have done together by adding the two routes below to your HTTP server.
For this assignment, you have to
- Add the route
GET /enviroment/
which returns thejson
object
{
'temperature': float,
'humidity': float
}
Optional task#
- (Optional) add route
POST /startblink/
which flashes the led according to the temperature reading- Flashes the number of tens digit (e.g. 29 degrees → 2) with 400ms on and 200ms off
- Pauses 1 sec
- Flashes the number of units digit (e.g. 29 degrees → 2) with 400ms on and 200ms off
Conclusion#
You have create a basic IoT application, putting together sensor reading and HTTP connectivity, letting external services to interact with your application.
Next step#
Next step → Conclusion