Specifications

getInfo(14) – Route Table Size
The Route Table Size value indicates how many other nodes your node can keep track of in its address
book. When a node needs to talk to another node, it must ask where that node is. It will find that it can
talk to the node directly, that it must communicate through another node, or that it cannot find the
node at all. In these first two cases, SNAPpy keeps track of the path used to contact the node in a route
table so the next time it talks to the same node, it does not have to query how to find the node first.
How long the path to a node is kept depends on the mesh routing timeouts defined in NV parameters
Mesh Routing Maximum Timeout, Mesh Routing Minimum Timeout, Mesh Routing New Timeout,
Mesh Routing Used Timeout, and Mesh Routing Delete Timeout (NV parameters 20 through 24).
getInfo(15) – Routes in Route Table
The Routes in Route Table value indicates how many of the routes in the node’s route table are in use,
meaning how many other nodes the current node knows how to access without having to first perform
a route request. See the description of getInfo(14) for more details.
getLq() – Get the most recent Link Quality
The getLq() function returns a number 0-127 (theoretical) representing the link quality (received signal
strength) of the most recently received packet, regardless of which node that packet came from. (It
could be a near node, or it could be a far node.)
Because this value represents – (negative) dBm, lower values represent stronger signals, and higher
values represent weaker signals.
This function takes no parameters.
getMs() – Get system millisecond tick
The getMs() function returns the value of a free-running timer within the SNAP Engine. The value
returned is in units of milliseconds. The timer is only 16 bits, and rolls back around to 0 every 65.535
seconds.
Because all SNAPpy integers are signed, the counter’s full cycle is:
0, 1, 2,…,32766, 32767, -32768, -32767, -32766, …, -3, -2, -1, 0, 1,…
Some scripts use this function to measure elapsed (relative) times.
The value for this function is only updated between script invocations (events). If you do two back-to-
back getMs() calls, you will get the same value.
This function takes no parameters.
SNAP Reference Manual Document Number 600-0007K Page 55 of 202