Hello!
I have a problem. How can i change address in the loop (arduino 103) ?
I try, but dosn't work: (Always read the Address 1 and not read Address 2)
unsigned int modbusaddress = 1;
void setup()
{
.........
modbus_construct(packet1, modbusaddress, READ_HOLDING_REGISTERS, 0, 1,
readRegs);
.......
void loop()
{
modbusaddress = 2;
modbus_update();
...
}
Somebody help me please!
Thanks
Original issue reported on code.google.com by
vectra...@gmail.comon 27 Jun 2014 at 4:13Attachments: