pdf-icon

EzData

Functional description

EzData is an IoT cloud data storage service provided by M5Stack, where data can be shared between different devices by inserting or withdrawing data into or from the storage queue via unique token.

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

get value from topic " " with token " "

  • Gets a data from the top of the specified topic queue.

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

  • Saves data to the top of the specified topic queue.

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

  • Get a set of data from a specified data list, the advantage of using list storage is that it supports specifying the data index offset and can get more than one data at a time, the return value is a list.
  • list: list name string
  • offset: offset relative to the first position in the data list
  • count: number of data read

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

  • Save data to the first position of the specified data list

remove topic " " with token " "

  • Delete the topic or list and empty the queue data.

Use cases

Save data

The program implements, save data to the specified topic and save data to the specified data list.

Get the data

The program to achieve , from the get specified topic to get data , and from the data list to get more than one data , and empty the queue .

Run the above programs, respectively, into two M5 devices, and trigger the saving and acquisition of data by keystrokes.

On This Page