ESP32-PaxCounter/src/rcommand.h

19 lines
382 B
C
Raw Normal View History

2018-07-17 15:15:58 +02:00
#ifndef _RCOMMAND_H
#define _RCOMMAND_H
2018-07-15 14:28:05 +02:00
2018-07-17 11:53:43 +02:00
#include "senddata.h"
#include "configmanager.h"
2018-07-31 00:00:24 +02:00
#include "lorawan.h"
#include "macsniff.h"
2018-07-17 11:53:43 +02:00
2018-07-29 16:16:50 +02:00
// table of remote commands and assigned functions
typedef struct {
2018-07-31 00:00:24 +02:00
const uint8_t opcode;
void (*func)(uint8_t []);
2018-07-29 16:16:50 +02:00
const bool store;
} cmd_t;
2018-07-31 00:00:24 +02:00
void rcommand(uint8_t cmd[], uint8_t cmdlength);
2018-07-15 14:28:05 +02:00
void switch_lora(uint8_t sf, uint8_t tx);
#endif