fix: 出厂默认 topic 使用真实设备序列号 + PRINT 修正
- cfig_flash.c: factory_dev_info() 用 gMacAddr 生成真实主题 dld960/{SN}/srv + dld960/{SN}/dev
- net_srv.h: TOPIC_DEFAULT 加注释标明为格式模板
- net_srv.c: 修复上次提交的 PRINT 宏转义异常
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#define COM_LSSC_UDP_PORT 5500
|
||||
#define COM_DEV_MESSAGE_PORT 4900 //udp dev local message port
|
||||
|
||||
// 默认 Topic 格式模板(V1.01 双主题)
|
||||
// 实际出厂值时 factory_dev_info() 会用真实序列号替换 {sn}
|
||||
#define TOPIC_DEFAULT_SUBSCRIBE "dld960/{sn}/srv"
|
||||
#define TOPIC_DEFAULT_PUBLISH "dld960/{sn}/dev"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user