You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
610 B

#ifndef COMM_H
#define COMM_H
#include "firmware.h"
// times below are multiplied by DELAY_TIME, in ms
#define COMM_LOCK_IDLE_TIME 50
#define COMM_CARD_IDLE_TIME 1000
#define COMM_INFO_IDLE_TIME 3000
enum commStates
{
COMM_INIT,
COMM_IDLE,
COMM_LOCK,
COMM_CARD,
COMM_INFO,
};
extern enum commStates commState;
extern char wifiMACAddr[20];
extern const char *LOCKOUT_FIRMWARE_VERSION;
extern const String SOCKET_URL;
extern const String CARD_URL;
extern const String INFOLOG_URL;
extern const String UPDATE_URL;
void postState();
void getCards();
void postInfolog();
void processCommState();
#endif