MeshProtocolSimulator  1.0.0
Public Member Functions | Public Attributes | List of all members
NodeConnections Struct Reference

This structure represents link connection between two nodes. Nodes are indentified by it's MeshMAC addresses. More...

#include <Emulator_helpers.h>

Public Member Functions

 NodeConnections (MeshMAC node1, MeshMAC node2)
 
 NodeConnections (MeshMAC node1, MeshMAC node2, float rssi, float rssi_tolerance, float quality)
 
float getRSSI () const
 Gets RSSI from specified range, see RSSI and RSSI_tolerance.
 
bool canReceive () const
 Returns true if sent frame has to be received and false if not. Decision is made by Quality value.
 

Public Attributes

MeshMAC Node1 = 0
 First node.
 
MeshMAC Node2 = 0
 Second node.
 
float RSSI = 0.00f
 RSSI of current link connection in dBm. This value has to be negative and in range from 0dBm to -120dBm.
 
float RSSI_tolerance = 0.00f
 Absolute value, that can be added or subtracted from RSSI during simulation. When set to 0, RSSI will not change during simulation, but when set, for example to ±5dBm and RSSI is set to -56dBm, RSSI could be in range from -51dBm to -61dBm. More...
 
float Quality = 1.00f
 Link quality, represented as probability, that sent packet through this link will be received. Value can be in range from 0.00 to 1.00.
 

Detailed Description

This structure represents link connection between two nodes. Nodes are indentified by it's MeshMAC addresses.

Member Data Documentation

◆ RSSI_tolerance

float NodeConnections::RSSI_tolerance = 0.00f

Absolute value, that can be added or subtracted from RSSI during simulation. When set to 0, RSSI will not change during simulation, but when set, for example to ±5dBm and RSSI is set to -56dBm, RSSI could be in range from -51dBm to -61dBm.

Note
This value has to be positive.

The documentation for this struct was generated from the following files: