34 lines
		
	
	
		
			536 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			536 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _SENDDATA_H
 | |
| #define _SENDDATA_H
 | |
| 
 | |
| #include "spislave.h"
 | |
| #include "mqttclient.h"
 | |
| #include "cyclic.h"
 | |
| #include "sensor.h"
 | |
| #include "lorawan.h"
 | |
| #include "display.h"
 | |
| #include "sdcard.h"
 | |
| 
 | |
| 
 | |
| #if (COUNT_ENS)
 | |
| #include "corona.h"
 | |
| #endif
 | |
| 
 | |
| #if (LIBPAX)
 | |
| #include <libpax_api.h>
 | |
| 
 | |
| extern struct count_payload_t count_from_libpax;
 | |
| #endif
 | |
| 
 | |
| 
 | |
| extern Ticker sendTimer;
 | |
| 
 | |
| void SendPayload(uint8_t port);
 | |
| void sendData(void);
 | |
| void checkSendQueues(void);
 | |
| void flushQueues(void);
 | |
| bool allQueuesEmtpy(void);
 | |
| void setSendIRQ(void);
 | |
| 
 | |
| #endif // _SENDDATA_H_
 |