#pragma once
#include <Arduino.h>

// main data structure
typedef struct struct_message          // old: 44 bytes, new: 152 bytes - POSITION MATTER - NOT NAME OF VARIABLE!
{
  float md_temp;
  float md_hum;
  float md_light;
  uint8_t md_bat;
  char md_version[20];
  uint8_t md_mcu_model;
  uint8_t md_charging;
  uint8_t md_boot_reason;
  uint8_t md_wakeup_reason;
  unsigned long md_bootcount;

  // added for future use:
  uint8_t wifi_ok;          // used now
  uint8_t var2;
  int8_t md_rssi;           // used now
  int8_t var4;
  int8_t var5;
  char var6[10];
  char var7[22];
  char var8[32];
  float md_bat_volts;       // used now
  float var10;
  float var11;
  float var12;
  float var13;
  int32_t var14;
  int32_t var15;
  uint32_t var16;
  uint32_t var17;

} struct_message;
// main data structure END
