This structure contains informations about mesh packet, that are stored in it's header.  
 More...
#include <meshPacket.h>
This structure contains informations about mesh packet, that are stored in it's header. 
- See also
 - MeshPacketHeader 
 
- 
meshPacket.h 
 
 
◆ MeshPacketHeader()
  
  
      
        
          | MeshPacketHeader::MeshPacketHeader  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ Clear()
      
        
          | void MeshPacketHeader::Clear  | 
          ( | 
           | ) | 
           | 
        
      
 
Clears all data in packet header. 
 
 
◆ FromMeshFrame() [1/2]
      
        
          | bool MeshPacketHeader::FromMeshFrame  | 
          ( | 
          const MeshFrame &  | 
          frame | ) | 
           | 
        
      
 
Converts MeshFrame to current structure. 
- Parameters
 - 
  
    | frame | Mesh frame to convert.  | 
  
   
- Returns
 - Returns true when some packet fields are missing in data. 
 
 
 
◆ FromMeshFrame() [2/2]
      
        
          | bool MeshPacketHeader::FromMeshFrame  | 
          ( | 
          MeshFrameHeader  | 
          frameHeader,  | 
        
        
           | 
           | 
          const uint8_t *  | 
          data,  | 
        
        
           | 
           | 
          uint16_t  | 
          dataSize  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Converts MeshFrame (which consists from MeshFrameHeader and it's data) to current structure. 
- Parameters
 - 
  
     | frameHeader | Mesh frame header.  | 
    | [in] | data | Data contained in frame.  | 
    | [in] | dataSize | Size of data contained in frame in bytes.  | 
  
   
- Returns
 - Returns true when some packet fields are missing in data. 
 
 
 
◆ GetRawLength()
  
  
      
        
          | uint16_t MeshPacketHeader::GetRawLength  | 
          ( | 
          bool  | 
          includeCarriageCount | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets size of raw packet header including BSSID(4 bytes), which is not stored in packet. 
- Parameters
 - 
  
    | includeCarriageCount | Set to true, if packet will include CarriageCount or not.  | 
  
   
- Returns
 - Returns size of raw packet header in bytes. 
 
 
 
◆ GetUniquePacketID()
  
  
      
        
          | uint16_t MeshPacketHeader::GetUniquePacketID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets unique packed identifier which is composed from ID and source address. 
 
 
◆ HasError()
  
  
      
        
          | bool MeshPacketHeader::HasError  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if packet header is not valid. 
 
 
◆ operator=()
◆ ToMeshFrameHeader()
Converts packet header to frame packet header. 
- Parameters
 - 
  
    | BSSID | BSSID, that will be inserted to frame header, because packet does not contains it.  | 
  
   
- Returns
 - Converted MeshFrameHeader. 
 
- Note
 - Returned MeshFrameHeader does not contains correct CarriageCount and Carriage settings from FrameControl. 
 
 
 
◆ Destination
Address of destination source node. 
 
 
◆ FrameControl
◆ From
Address of neighbor node, which last time relayied current packet. 
 
 
◆ Hops
      
        
          | uint8_t MeshPacketHeader::Hops = 0 | 
        
      
 
Count of hops, that message done during transmission. Source MNode has 0 hops, next one 1 hop, etc. 
 
 
◆ ID
      
        
          | uint8_t MeshPacketHeader::ID = 0 | 
        
      
 
Unique packet ID. 
- Note
 - ID has to be generated by source node. 
 
 
 
◆ Source
Address of message source node. 
 
 
◆ To
Address of neighbor node, which has to receive current packet and other neighbor nodes has to ignore it. 
 
 
The documentation for this struct was generated from the following files: