How to use Pydantic together with Flask to perform validation of query parameters and request bodies.
Micro:bit MicroPython: UART OBLOQ HTTP GET Request to Flask server
In this tutorial we are going to check how to send a HTTP GET request using a micro:bit board and a UART OBLOQ. We will be using MicroPython to program the micro:bit board. Introduction In this tutorial we are going to check how to send a HTTP GET request using a micro:bit board and a UART OBLOQ. We will be using …
Continue reading "Micro:bit MicroPython: UART OBLOQ HTTP GET Request to Flask server"
Micro:bit uPython: HTTP UART OBLOQ POST request to Flask server
In this tutorial we are going to learn how to send a HTTP POST request using a micro:bit board and a UART OBLOQ. Introduction In this tutorial we are going to learn how to send a HTTP POST request using a micro:bit board and a UART OBLOQ. We will be using MicroPython to program the …
Continue reading "Micro:bit uPython: HTTP UART OBLOQ POST request to Flask server"
UART OBLOQ: Sending HTTP POST request to Flask server
In this tutorial we will check how to send a HTTP POST from OBLOQ to a Python Flask server. Introduction In this tutorial we will check how to send a HTTP POST from OBLOQ to a Python Flask server. For a detailed tutorial on how to send HTTP POST requests with OBLOQ, please check here. …
Continue reading "UART OBLOQ: Sending HTTP POST request to Flask server"
Raspberry Pi 3 Flask: Receiving HTTP POST Request from ESP32
In this tutorial we will check how to setup a simple Flask server on the Raspberry Pi and send HTTP POST requests to it from the ESP32. Then, we will access the body of the request on the Raspberry Pi. The Python version used on this tutorial was 3.5.3 and it was tested on a Raspberry Pi …
Continue reading "Raspberry Pi 3 Flask: Receiving HTTP POST Request from ESP32"
Raspberry Pi Flask: Receiving HTTP GET Request from ESP32
In this tutorial we will check how to setup a very simple Flask server on the Raspberry Pi and send HTTP GET requests to it from an ESP32 running the Arduino core. This tutorial was tested on a Raspberry Pi 3 model B+, running version 4.9 of Raspbian, and on a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this …
Continue reading "Raspberry Pi Flask: Receiving HTTP GET Request from ESP32"
Raspberry Pi 3 Raspbian: Exposing a Flask server to the local network
In this tutorial we will check how to expose a Flask server to the local network, so it can be reached from clients connected to that same network. This tutorial was tested on a Raspberry Pi 3 model B+, running version 4.9 of Raspbian, installed using NOOBS. Introduction In this tutorial we will check how to expose a Flask server …
Continue reading "Raspberry Pi 3 Raspbian: Exposing a Flask server to the local network"
Raspberry Pi 3 Raspbian: Running a Flask server
In this tutorial, we will check how to start a very simple Flask server on the Raspberry Pi and return a "Hello World" message to clients that send a request to it. This tutorial was tested on a Raspberry Pi 3 model B+, running version 4.9 of Raspbian, installed using NOOBS. Introduction In this tutorial, we will check how to …
Continue reading "Raspberry Pi 3 Raspbian: Running a Flask server"
ESP32 Arduino: Basic Authentication
The objective of this post is to explain how to send a HTTP GET request using basic authentication on the Arduino core running on the ESP32. 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 send a HTTP GET …
Flask: Basic authentication
In this Flask tutorial, we will check how to get the username and the password from a HTTP request made to a Flask server with basic authentication. Introduction In this Flask tutorial, we will check how to get the username and the password from a HTTP request made to a Flask server with basic …