FakeBacnetRouter class final

A router simulated by a FakeBacnetClient: answers Who-Is-Router-To-Network with the networks it reaches and routing table queries with routingTable.

final client = FakeBacnetClient(
  routers: [FakeBacnetRouter('10.0.0.1', networks: [5, 6])],
  networkNumber: 1,
);
final routers = await client.discoverRouters(); // 10.0.0.1 -> [5, 6]

Constructors

FakeBacnetRouter(String ipAddress, {required List<int> networks, int port = 47808, List<BacnetRoutingTableEntry>? routingTable})
Creates a router at ipAddress (an IPv4 address) and port.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ipAddress → String
IPv4 address.
final
mac → List<int>
BACnet/IP address (IPv4 address and port).
final
networks → List<int>
The networks the router reaches.
final
online ↔ bool
While false, the router ignores all messages.
getter/setter pair
port → int
UDP port.
final
routingTable → List<BacnetRoutingTableEntry>
The answer to routing table queries.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited