RoutersNeighbors (List PakBus Routers and Neighbors)

The RoutersNeighbors instruction is used to return a list of all PakBus routers and their neighbors known to the datalogger.

Syntax

RoutersNeighbors ( DestArray(MaxRouters,MaxNeighbors+1) )

Remarks

The DestArray must be a two-dimensional array defined as a long. The first dimension should be sized to the maximum number of routers expected and the second dimension should be sized to the maximum number of neighbors expected plus one.

The return for each array will include:

0 is returned for any array greater than the number of routers and/or neighbors.