feat: RS485透传改为Modbus RTU Master轮询寄存器41161报警信号

This commit is contained in:
2026-05-27 17:15:57 +08:00
parent 0bc39b7944
commit 5318c35d37
17 changed files with 380 additions and 4373 deletions

View File

@ -74,6 +74,10 @@ extern "C" {
// | 月
// 年
#ifndef HEARTBEAT_PACKET
#define HEARTBEAT_PACKET 1 /* 启用心跳包上报 */
#endif
#ifndef USE_W5500
#define USE_W5500 1 /* 默认启用W5500以太网模块 */
#endif
@ -93,13 +97,14 @@ extern "C" {
#define PROTO_TYPE_IO 0x10
#define PROTO_TYPE_NET 0x55
#define PROTO_TYPE_485 0x48
#define PROTO_TYPE_MODBUS_RTU 0x4D
#define PROTO_TYPE_HB 0xAA
/* =========================================================
🚀 核心身份标识:烧录不同设备时,请务必修改这个数字!
比如设备A烧录时改为 0x01设备B烧录时改为 0x02
========================================================= */
#define MY_DEVICE_ID 101
#define MY_DEVICE_ID 105
/* =========================================================
🚀 开发调试开关