File tree Expand file tree Collapse file tree 3 files changed +214
-354
lines changed
m5stack/components/m5things Expand file tree Collapse file tree 3 files changed +214
-354
lines changed Original file line number Diff line number Diff line change 1- ## M5Things
1+ ## M5Things
2+
3+ 1 . res.json 增加 ** domain** 字段,云项目的文件是 ** "domain":"project"** ,用户通过文件管理器上传的文件是 ** "domain":"user"** .
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments