Skip to content

How to set id after creating object? #14

@MarcinanProfesjonalista

Description

I want to change device identyficator (id) in properties of my object.

How to do it?

Ive got standard constructors with


// Declare the RS485 interface here with a hardware serial port.
RS485Class RS485(PORT_RS485, PIN_RS45_EN, -1, PIN_RS485_TX);  // (Serial Port, DE, RE, TX)

// Create a Modbus RTU node instance with the RS485 interface.
CSE_ModbusRTU modbusRTU(&RS485, id, "modbusRTU-0x01");  // (RS-485 Port, Device Address, Device Name)

// Create a Modbus RTU server instance with the Modbus RTU node.
CSE_ModbusRTU_Server modbusRTUServer(modbusRTU, "modbusRTUClient");  // (CSE_ModbusRTU, Server Name)

And then i want to modbusRTU... (no method for that?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion from a user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions