LoRaMesher Library  0.0.5
A LoRa Mesh library for the IoT
All Classes Functions Variables Pages
AppPacket< T > Class Template Reference

Application packet, it is used to send the packet to the application layer. More...

#include <AppPacket.h>

Public Member Functions

size_t getPayloadLength ()
 Get the payload length in number of T. More...
 
void operator delete (void *p)
 Delete function for AppPackets. More...
 

Public Attributes

uint16_t dst
 Destination address, normally it will be local address or BROADCAST_ADDR.
 
uint16_t src
 Source Address.
 
uint32_t payloadSize = 0
 Payload Size in bytes.
 
payload []
 Payload Array.
 

Detailed Description

template<class T>
class AppPacket< T >

Application packet, it is used to send the packet to the application layer.

Template Parameters
T

Member Function Documentation

◆ getPayloadLength()

template<class T >
size_t AppPacket< T >::getPayloadLength ( )
inline

Get the payload length in number of T.

Template Parameters
TType to be converted
Parameters
pApplication packet
Returns
size_t size in number of T

◆ operator delete()

template<class T >
void AppPacket< T >::operator delete ( void *  p)
inline

Delete function for AppPackets.

Parameters
pAppPacket to be deleted

The documentation for this class was generated from the following file: