Added app.ino file description as well as renamed the type of the payload for more clarity

This commit is contained in:
Th3maz1ng 2022-09-09 09:57:04 +02:00
parent 33160a9372
commit 8fc4976ac8

View File

@ -1,3 +1,10 @@
/**
* Author : Anatole SCHRAMM-HENRY
* Created the : 30/05/2021
* This is the source file containing the main app.
* It defines all the logic which make the weather station work.
*/
#include "definition.h" #include "definition.h"
#include "BoardConfig.h" #include "BoardConfig.h"
#include "WSPeripherals.h" #include "WSPeripherals.h"
@ -7,7 +14,7 @@ BoardConfig defaultBC;
WSPeripherals WSP(defaultBC); WSPeripherals WSP(defaultBC);
uint8_t sleepSlots(0), rCode(0); uint8_t sleepSlots(0), rCode(0);
DataPacket payload; WeatherStationDataPacket payload;
void setup() void setup()
{ {
@ -87,7 +94,7 @@ void loop()
sleepSlots++; sleepSlots++;
} }
void debugStruct(DataPacket *p) void debugStruct(WeatherStationDataPacket *p)
{ {
Serial.println("##############DATA##############"); Serial.println("##############DATA##############");
Serial.print("ID : "); Serial.print("ID : ");