20 lines
		
	
	
		
			379 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			379 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _RCOMMAND_H
 | |
| #define _RCOMMAND_H
 | |
| 
 | |
| #include "senddata.h"
 | |
| #include "configmanager.h"
 | |
| #include "lorawan.h"
 | |
| #include "macsniff.h"
 | |
| #include <rom/rtc.h>
 | |
| 
 | |
| // table of remote commands and assigned functions
 | |
| typedef struct {
 | |
|   const uint8_t opcode;
 | |
|   void (*func)(uint8_t []);
 | |
|   uint8_t params;
 | |
|   const bool store;
 | |
| } cmd_t;
 | |
| 
 | |
| void rcommand(uint8_t cmd[], uint8_t cmdlength);
 | |
| 
 | |
| #endif |