hopsFromOutPathLen
function hopsFromOutPathLen(outPathLen): number | undefined;Defined in: src/model/contacts.ts:35
Hops away, derived from a contact’s stored out_path_len. This is the packed MeshCore path-length byte, NOT a raw byte count: bits 5-0 hold the hop count and bits 7-6 hold hashSize-1 (see firmware Packet::setPathHashSizeAndCount / getPathByteLen). The real path occupies hops × hashSize bytes. So a direct 2-byte-mode contact stores 0x40 (hop count 0, hashSize 2) — its hop count is 0, not 64. 0xFF (OUT_PATH_UNKNOWN) means no path established yet → flood.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
outPathLen | number |
Returns
Section titled “Returns”number | undefined