pslockout/firmware/comm.h

35 lines
610 B
C

#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