fromProto

fun fromProto(reportingNode: Int, neighborNodeIds: List<Int>, snrValues: List<Float>, timestamp: Int = 0): NeighborInfo(source)

Parse from proto NeighborInfo fields.

Parameters

reportingNode

the node that sent the neighbor info

neighborNodeIds

list of neighbor node numbers

snrValues

corresponding SNR values (same order/length as nodeIds)

timestamp

seconds since epoch