Introduction In this tutorial we will check how to compress a string using the Brotli compression algorithm. You can check the full specification of the algorithm here. We will be using this library, which includes a Python module. As explained in the Python section of the GitHub page of the library, you can install it using …
ESP32 / ESP8266 Protocol Buffers: messages with strings
In this tutorial we will check how to use strings in our protobuf messages, using Nanopb and the Arduino core, running 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. The tests on the ESP8266 were performed on a DFRobot’s ESP8266 FireBeetle board. Introduction In …
Continue reading "ESP32 / ESP8266 Protocol Buffers: messages with strings"
Micro:bit MicroPython: string repetition
In this tutorial we will check how to use the * operator to generate a repetitive sequence of a string. This tutorial was tested on MicroPython running on a micro:bit board. Introduction In this tutorial we will check how to use the * operator to generate a repetitive sequence of a string. Using this operator, we can define …
ESP32 JavaScript Espruino: String interpolation
In this tutorial we will check how to perform string interpolation in Espruino running on the ESP32. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board. Introduction In this tutorial we will check how to perform string interpolation in Espruino running on the ESP32. It's important to mention that string interpolation is a …
Continue reading "ESP32 JavaScript Espruino: String interpolation"
Python: Converting string to bytes object
In this post, we will check how to convert a Python string to a bytes object. Bytes objects are immutable sequences of single bytes in the range between o and 255 (inclusive). Introduction In this post, we will check how to convert a Python string to a bytes object. Bytes objects are immutable sequences …
Continue reading "Python: Converting string to bytes object"
Micro:bit JavaScript Blocks Editor: String interpolation
The objective of this post is to explain how to use string interpolation on the micro:bit board, using the JavaScript Blocks Editor. Introduction The objective of this post is to explain how to use string interpolation on the micro:bit board, using the JavaScript Blocks Editor. In short, string interpolation corresponds to evaluating a string that may contain …
Continue reading "Micro:bit JavaScript Blocks Editor: String interpolation"
ESP32 Espruino: convert number to string in different bases
The objective of this post is to explain how to convert a number to string in different bases, using the Espruino on the ESP32. 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 convert a number to string in different bases, using the …
Continue reading "ESP32 Espruino: convert number to string in different bases"
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 …
Continue reading "ESP32 / ESP8266 MicroPython: String split method"