2018-07-17 15:15:58 +02:00
|
|
|
#ifndef _SENDDATA_H
|
|
|
|
#define _SENDDATA_H
|
2018-07-14 19:12:20 +02:00
|
|
|
|
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
|
|
|
|
2020-10-04 14:29:57 +02:00
|
|
|
extern Ticker sendTimer;
|
2019-03-03 00:30:57 +01:00
|
|
|
|
2020-12-09 11:01:54 +01:00
|
|
|
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);
|
2020-10-04 14:29:57 +02:00
|
|
|
void setSendIRQ(void);
|
2018-07-14 19:12:20 +02:00
|
|
|
|
2019-03-11 18:09:01 +01:00
|
|
|
#endif // _SENDDATA_H_
|