Skip to main content

ESP-IDF Basics - Assign. 3.3

··1 min·
Table of Contents
WS00A - This article is part of a series.
Part 11: This Article

In this assignment, you will put 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,
}
  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

Or go back to navigation menu

WS00A - This article is part of a series.
Part 11: This Article

Related

ESP-IDF Basics - Assign. 1.2

··2 mins
Create a new project from the blink example and change the output GPIO pin via menuconfig