Specifications
getNetId() – Get the node’s Network ID
The getNetId() function returns the 16-bit Network Identifier (ID) value the node is currently using.
The node will only accept packets containing this ID, or a special “wildcard” value of 0xffff (the
“wildcard” Network ID is used during the “find nodes” process).
The Network ID and the channel are what determine which radios can communicate with each other in
a wireless network. Radios must be set to the same channel and Network ID in order to communicate
over the air. Nodes communicating over a serial link pay no attention to the channel and Network ID.
See also, setNetId(). This function takes no parameters.
getStat() – Get Node Traffic Status
This function returns details about how busy the node has been with processing packets. Each return
value ranges from 0 to 255. The values “peg” at 255 (i.e., once reaching 255 they stay there until
cleared). Reading a value resets the counter to 0.
getStat(0) – Null Transmit Buffers
This provides the number of transmit buffers processed through a null serial port.
getStat(1) – UART0 Receive Buffers
This provides the number of received buffers processed through UART0.
getStat(2) – UART0 Transmit Buffers
This provides the number of transmit buffers processed through UART0.
getStat(3) – UART1 Receive Buffers
This provides the number of received buffers processed through UART1.
getStat(4) – UART1 Transmit Buffers
This provides the number of transmit buffers processed through UART1.
getStat(5) – Transparent Receive Buffers
This provides the number of received buffers processed through transparent serial mode.
getStat(6) – Transparent Transmit Buffers
This provides the number of transmit buffers processed through transparent serial mode.
getStat(7) – Packet Serial Receive Buffers
This provides the number of received buffers processed through packet serial mode.
getStat(8) – Packet Serial Transmit Buffers
This provides the number of transmit buffers processed through packet serial mode.
getStat(9) – Radio Receive Buffers
This provides the number of receive buffers processed through the radio.
Page 56 of 202 SNAP Reference Manual Document Number 600-0007K