Skip to content

Variable Address #31

Description

@GoogleCodeExporter
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.com on 27 Jun 2014 at 4:13

Attachments:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions