Skip to main content

ESP-IDF Basics - Assign. 3.3

·1 min·
Table of Contents

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

  1. Add the route GET /enviroment/ which returns the json object
{
   'temperature': float,
   'humidity': float
}

Optional task
#

  1. (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

Related

ESP-IDF Basics - Assign. 1.1
3 mins
ESP-IDF Basics - Assign. 1.2
1 min
ESP-IDF Basics - Assign. 2.1
7 mins