I set the array variable to static in modbusTCP.h.
static USHORT usRegInputBuf[REG_INPUT_NREGS];
After that, I include modbusTCP.h and use it in main.c.
usRegInputBuf[0] = 1;
usRegInputBuf[1] = 4; ...
But there is a problem that the variable value does not change.
pritnf("%u, %u\n", usRegInputBuf[0], usRegInputBuf[1]);
=> 0, 0
How can you solve the problem?