020 – ESP32 MicroPython: RESTful APIs | Demo READ and WRITE
In this article, we will learn a more complete usage of RESTful APIs which is bidirectional communication with the server that is both sending and requesting of data.
In this article, we will learn a more complete usage of RESTful APIs which is bidirectional communication with the server that is both sending and requesting of data.
In the previous tutorial, I demonstrate using the RESTful APIs to communicate with Thingspeak server sending DHT sensor data. Now in this aticle, I will demonstrate the opposite which is requesting data from a server. This time, communicating with another server which is the OpenWeather. The receive data will be displayed on the OLED display.
REST API is one of the most popular API types. REST stands for REpresentational State Transfer which is also known as RESTful APIs. It is designed to take advantage of existing protocol. It can be used over any existing protocol, but it is typically used over HTTP when used on web applications. A RESTful API is an application program interface that uses HTTP requests to GET, PUT, POST and DELETE data.
In the previous tutorials we learned to create web server both as station mode and access point mode using socket connection. And in last video, we use a DHT sensor … Read More
In this article you will learn to configure ESP32 wifi as Access Point. You will also learn to create a web server hosted on it.