Skip to content

Commit cec2761

Browse files
committed
components/m5things: Add domain field to distinguish user files.
Signed-off-by: lbuque <[email protected]>
1 parent 9737fcb commit cec2761

File tree

3 files changed

+214
-354
lines changed

3 files changed

+214
-354
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
## M5Things
1+
## M5Things
2+
3+
1. res.json 增加 **domain** 字段,云项目的文件是 **"domain":"project"**,用户通过文件管理器上传的文件是 **"domain":"user"** .

m5stack/components/m5things/include/m5things.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@
2424
#include "extmod/vfs_lfs.h"
2525
#include "lib/littlefs/lfs2.h"
2626

27+
/** configurations */
28+
#define M5THINGS_MQTT_RECONNECT_WAIT_MS (15000)
29+
#define M5THINGS_MQTT_PING_REPORT_INTERVAL_US (30 * 1000 * 1000) // 30 seconds
30+
/** configurations */
31+
2732
#define OTA_UPDATE_FILE_NAME "main_ota_temp.py" // Fixed name!!!
2833

2934
#define M5THINGS_OTA_TOPIC_TEMPLATE \
3035
"$m5/uiflow/v1/%s/%02x%02x%02x%02x%02x%02x/%s"
3136

32-
#define FILE_RECORD_PATH "res/res.json"
37+
#define FILE_RECORD_PATH "/flash/res/res.json"
3338

3439
#define BOOT_OPT_NOTHING 0 // Run main.py(after download code to device set to this)
3540
#define BOOT_OPT_MENU_NET 1 // Show startup menu and network setup

0 commit comments

Comments
 (0)