Skip to content

Commit

Permalink
EXAMPLE: update example inreg data for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
niwciu committed Nov 3, 2024
1 parent 77090b9 commit c8d190e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/STM32G070RB_MODBUS_SLAVE/Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
modbus_coil_disin_t coil_data[EXAMPLE_DATA_QTY] = {1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1};
modbus_coil_disin_t din_data[EXAMPLE_DATA_QTY] = {1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1};
modbus_reg_t hreg_data[EXAMPLE_DATA_QTY] = {2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010};
modbus_reg_t inreg_data[EXAMPLE_DATA_QTY] = {4201, 4202, 4203, 4204, 4205, 4206, 4207, 4208, 4209, 4210, 4301, 4302, 4303, 4304, 4305, 4306, 4307, 4308, 4309, 4310};
modbus_reg_t inreg_data[EXAMPLE_DATA_QTY] = {60, 61, 62, 4204, 4205, 4206, 4207, 4208, 4209, 4210, 4301, 4302, 4303, 4304, 4305, 4306, 4307, 4308, 4309, 4310};
modbus_device_ID_t Slave_ID = 0x01;

modbus_coil_disin_t LED_status = 0;
Expand Down

0 comments on commit c8d190e

Please sign in to comment.