#ifndef _LORA_MESSAGES_H_
#define _LORA_MESSAGES_H_

#define MESSAGES_VERSION 1.0

#include <stdint.h>

typedef char MessageType_t[8];
typedef uint16_t NodeID_t;

typedef struct
{
    NodeID_t nodeid;
    uint32_t millis;
    uint8_t faction_active;
    uint32_t faction_1_timer;
    uint32_t faction_2_timer;
    uint32_t faction_3_timer;
} __attribute__((packed)) MessageStatus_t;

typedef struct
{
    NodeID_t nodeid;
    bool gpsfix;
    double latitude;
    double longitude;
    double altitude;
} __attribute__((packed)) MessagePosition_t;

#endif