ESP32-PaxCounter/include/senddata.h

29 lines
581 B
C
Raw Normal View History

2018-07-17 15:15:58 +02:00
#ifndef _SENDDATA_H
#define _SENDDATA_H
2018-07-14 19:12:20 +02:00
2021-03-25 10:30:38 +01:00
#include <libpax_api.h>
#include "libpax_helpers.h"
2018-11-03 20:44:54 +01:00
#include "spislave.h"
2020-05-16 23:49:34 +02:00
#include "mqttclient.h"
2019-10-01 18:06:49 +02:00
#include "cyclic.h"
2020-03-29 18:08:52 +02:00
#include "sensor.h"
2018-11-03 20:44:54 +01:00
#include "lorawan.h"
2019-10-01 18:06:49 +02:00
#include "display.h"
2019-12-25 23:07:34 +01:00
#include "sdcard.h"
2020-11-01 13:45:17 +01:00
#if (COUNT_ENS)
2020-09-01 11:35:45 +02:00
#include "corona.h"
2020-11-01 13:45:17 +01:00
#endif
2019-12-25 23:07:34 +01:00
2021-03-02 18:36:34 +01:00
extern struct count_payload_t count_from_libpax;
void SendPayload(uint8_t port);
2019-08-30 18:54:53 +02:00
void sendData(void);
2018-09-22 21:26:11 +02:00
void checkSendQueues(void);
2020-12-09 10:15:12 +01:00
void flushQueues(void);
bool allQueuesEmtpy(void);
void setSendIRQ(TimerHandle_t xTimer = NULL);
void initSendDataTimer(uint8_t sendcycle);
2018-07-14 19:12:20 +02:00
#endif // _SENDDATA_H_