modbus 0.0.1 copy "modbus: ^0.0.1" to clipboard
modbus: ^0.0.1 copied to clipboard

outdated

MODBUS dart library.

modbus-dart #

MODBUS client library

pub package

Getting Started #

Add a dependency to your pubspec.yaml

dependencies:
	modbus: ^0.0.1

Using #

import 'package:modbus/modbus.dart' as modbus;

  import 'package:modbus/modbus.dart' as modbus;


  main(List<String> arguments) async {
    
    var client = modbus.createTcpClient('10.170.1.20', port: 1001, mode: modbus.ModbusMode.rtu);

    try {
      await client.connect();

      var slaveIdResponse = await client.reportSlaveId();

      print("Slave ID: " + slaveIdResponse);
    } finally {
      client.close();
    }
    
  }

Limitations #

SerialConnector is not implemented yet

36
likes
0
pub points
80%
popularity

Publisher

unverified uploader

MODBUS dart library.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

logging

More

Packages that depend on modbus