localAddress method

  1. @override
Future<BacnetAddressRecipient> localAddress()
override

127.0.0.1 and the port of config.

Implementation

@override
Future<BacnetAddressRecipient> localAddress() async {
  _checkStarted();
  final port = _config.port;
  return BacnetAddressRecipient(
    network: 0,
    mac: [127, 0, 0, 1, port >> 8, port & 0xFF],
  );
}