LoRaMesher Library  0.0.5
A LoRa Mesh library for the IoT
RoutePacket.h
1#ifndef _LORAMESHER_ROUTE_PACKET_H
2#define _LORAMESHER_ROUTE_PACKET_H
3
4#include <Arduino.h>
5
6#include "PacketHeader.h"
7#include "entities/routingTable/NetworkNode.h"
8
9#pragma pack(1)
10class RoutePacket final : public PacketHeader {
11public:
12 NetworkNode routeNodes[];
13
14 size_t getPayloadLength() { return this->payloadSize / sizeof(NetworkNode); }
15};
16#pragma pack()
17
18#endif
Network Node.
Definition: NetworkNode.h:12