addDeviceBinding method

  1. @override
Future<void> addDeviceBinding(
  1. int deviceId,
  2. String ip, {
  3. int port = 47808,
  4. int network = 0,
  5. List<int> adr = const [],
  6. int maxApdu = 1476,
})
override

Adds (or replaces) a static device address binding.

Not needed for devices that answer Who-Is: their address is learned automatically. network and adr address devices behind a router.

Implementation

@override
Future<void> addDeviceBinding(
  int deviceId,
  String ip, {
  int port = 47808,
  int network = 0,
  List<int> adr = const [],
  int maxApdu = 1476,
}) async {
  _checkStarted();
  _bound.add(deviceId);
}