Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and cheaply.
LoraPacket.h
Go to the documentation of this file.
1 #ifndef LORAPACKET_H_
2 #define LORAPACKET_H_
3 
4 #include <Arduino.h>
5 #include <WString.h>
6 
11 typedef struct {
13  String senderId;
15  String topic;
17  String messageId;
19  String payload;
21  String path;
22 } Packet;
23 
24 #endif
Packet::payload
String payload
Message payload.
Definition: LoraPacket.h:19
Packet::messageId
String messageId
Unique id representing the message.
Definition: LoraPacket.h:17
Packet::topic
String topic
The message topic. Some topics are preset. For example "status", "health".
Definition: LoraPacket.h:15
Packet::path
String path
Comma separated list of duck device ids that have seen this packet.
Definition: LoraPacket.h:21
Packet::senderId
String senderId
Unique id of the duck sending the packet.
Definition: LoraPacket.h:13
Packet
Internal cluster duck LoRa message structure.
Definition: LoraPacket.h:11