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 / 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: Applying filter function to lists

The objective of this post is to explain how to use the filter function with lists in MicroPython. 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 post is to explain how to use …

ESP32 / ESP8266 MicroPython: Applying map function to lists

The objective of this post is to explain how to use the map function to perform operations over MicroPython lists. 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 post is to explain how …

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 …

ESP32 MicroPython: Executing scripts with uPyCraft

The objective of this post is to explain how to execute MicroPython scripts using the uPyCraft IDE. The tests of 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 execute MicroPython scripts using the uPyCraft IDE. If you haven't yet set …