mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Increaes element size to 50k
This commit is contained in:
parent
92d8850261
commit
fda922105b
2 changed files with 7 additions and 2 deletions
|
@ -32,8 +32,13 @@ unsigned long previousMillis10ms = 50;
|
|||
unsigned long previousMillisInverter = 0;
|
||||
|
||||
//ModbusRTU parameters
|
||||
#if defined(MODBUS_BYD) || defined(MODBUS_LUNA2000)
|
||||
#if defined(MODBUS_BYD)
|
||||
#define MB_RTU_NUM_VALUES 30000
|
||||
#endif
|
||||
#if defined(MODBUS_LUNA2000)
|
||||
#define MB_RTU_NUM_VALUES 50000
|
||||
#endif
|
||||
#if defined(MODBUS_BYD) || defined(MODBUS_LUNA2000)
|
||||
uint16_t mbPV[MB_RTU_NUM_VALUES]; // process variable memory
|
||||
// Create a ModbusRTU server instance listening on Serial2 with 2000ms timeout
|
||||
ModbusServerRTU MBserver(Serial2, 2000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue