Yash Sanghvi has Published 220 Answers

ArduinoJSON: Working with Flash Strings

Yash Sanghvi
Published on 26-Jul-2021 10:24:01
The syntax for deserialization is as follows −deserializeJson(doc, json)where doc is the JSON Document in which you will store the deserialized output, and json is the buffer containing the JSON contents.The good news is that the buffer can be taken directly from the PROGMEM. In other words, if you don't ... Read More

ArduinoJSON: Memory Allocation

Yash Sanghvi
Published on 26-Jul-2021 10:17:17
You can declare two types of JSON Documents with the ArduinoJson library - StaticJsonDocument and DynamicJsonDocument. Both need the capacity (in bytes) to be specified at the time of declaration.For static docs, the declaration syntax is −StaticJsonDocument<capacity> doc_name;For example −StaticJsonDocument<256> myDoc;For dynamic docs, the declaration syntax is −DynamicJsonDocument doc_name(capacity);For example, DynamicJsonDocument ... Read More

ArduinoJSON: Serialize and Deserialize

Yash Sanghvi
Published on 26-Jul-2021 10:15:09
The ArduinoJSON library, as the name suggests, helps you work with JSON objects on Arduino. In order to install it, go to the Library Manager, and search for ArduinoJSON. Install the library by Benoit Blanchon.This is one of the very heavily documented libraries. In fact, it has its own website: ... Read More

Arduino – base64 encode and decode

Yash Sanghvi
Published on 26-Jul-2021 10:08:39
Arduino contains a library that helps with base64 encode and decode. You can download it from the Library Manager. Search for base64, and install the library by Densaugeo.Now, open a new sketch and run the following sample code −#include "base64.hpp" unsigned char normal_text[20] = "Hello World"; unsigned char base64_text[20]; ... Read More

How to get data of any size from the EEPROM with Arduino?

Yash Sanghvi
Published on 26-Jul-2021 10:01:11
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.In this article, ... Read More

How to put data of any size in the EEPROM using Arduino?

Yash Sanghvi
Published on 26-Jul-2021 09:53:45
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.In this article, ... Read More

How to update existing data in EEPROM with Arduino?

Yash Sanghvi
Published on 26-Jul-2021 09:47:04
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.In this article, ... Read More

How to clear the EEPROM with Arduino?

Yash Sanghvi
Published on 26-Jul-2021 09:42:56
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.In this article, ... Read More

How to write data into EEPROM with Arduino?

Yash Sanghvi
Published on 26-Jul-2021 09:39:37
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.ExampleWe will see ... Read More

How to read data from EEPROM in Arduino?

Yash Sanghvi
Published on 26-Jul-2021 09:36:16
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.ExampleWe will see ... Read More
Previous 1 ... 3 4 5 6 7 8 9 ... 22 Next
Advertisements