EzData

Function Description

EzData is an IoT cloud data storage service provided by M5Stack. Different devices can insert or extract data into the storage queue through the unique token to realize data sharing.

Precautions:
1. All the following operations depend on the unique token, which is fixed in the same browser environment. Please copy the token before use.
2. If no data operation is performed within half a year, the data queue corresponding to the token will be cleared.
3. The data will be sorted in descending order according to the inserted time (the last inserted data is at the top of the list), and the data will be accumulated and saved.

get value from topic " " with token " "

  • Get data from the top of the specified topic queue.

save value " " to topic " " with token " "

  • Save data to the top of the specified topic queue

get value from list " " offset " " count " " with token " "

-Obtain a set of data from a specified data list. The advantage of using list storage is that it supports the specified data index offset and can obtain multiple data at a time, and the return value is a list. -list: list name string -offset: the offset relative to the first position of the data list -count: the number of read data

save value " " to list " " with token " "

  • Save data to the top of the specified data list

remove topic " " with token " "

  • Delete topic or list, and clear the queue data.

Use Cases

Data Storage

The program is implementing saving data to the specified topic and saving data to the specified data list.

Acquire Data

The program is implemented to obtain data from the specified topic, and obtain multiple data from the data list at once, and clear the queue.

Run the above programs to two M5 devices respectively, and trigger the saving and obtaining of data by pressing the keys.

On This Page