ESP32 / ESP8266 MicroPython: String split method

The objective of this post is to explain how to use the split method to separate strings in sub-strings accordingly to a given separator string. This tutorial was tested both on the ESP32 and on the ESP8266. The tests on the ESP32 were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this …

ESP32 Picoweb: Obtaining the HTTP Method of the request

The objective of this post is to explain how to obtain the HTTP method from a request performed to a MicroPython Picoweb application. The tests shown through this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to obtain the HTTP method from …

ESP32 Picoweb: Changing the returned HTTP code

The objective of this post is to explain how to return specific HTTP codes on a MicroPython Picoweb app. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to return specific HTTP codes on a MicroPython Picoweb app. As we will see below, we …

ESP32 Picoweb: Serving JSON content

In this ESP32 tutorial we will check how to serve JSON content from a Picoweb app. The tests shown here were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction In this ESP32 tutorial we will check how to serve JSON content from a Picoweb app. For an introduction on Picoweb, please consult this previous post. …

ESP32 MicroPython: Serving HTML from the file system in Picoweb

The objective of this post is to explain how to serve HTML content from the MicroPython file system, on a Picoweb app. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to serve HTML content from the MicroPython file system, on a Picoweb app. …

ESP32 MicroPython: Changing the HTTP response content-type of Picoweb route

The objective of this post is to explain how to change the content-type of the HTTP answer of a request made to a Picoweb route. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to change the content-type of the HTTP answer of a …

ESP32 MicroPython: HTTP Webserver with Picoweb

The objective of this post is to explain how to install Picoweb, a HTTP Micro web framework for MicroPython. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to install Picoweb, a Micro web framework for MicroPython. This framework allows us to create an …

ESP32 / ESP8266 MicroPython: Working with dictionaries

Introduction The objective of this post is to explain how to use dictionaries in MicroPython. Naturally, the functionalities that we will see here also apply to Python, since dictionaries are one of its basic data structures. Please note that this should be an introductory tutorial about MicroPython dictionaries. Thus, we will not be covering the …

ESP32 / ESP8266 MicroPython: Lambda functions

Introduction The objective of this post is to explain how to use lambda functions in MicroPython and their difference regarding regular functions. Lambdas are a concept supported in many other programming languages, such as JavaScript and C#, and in a more formal definition they correspond to anonymous functions. So, in MicroPython, this means that we …