1 // WiFi network to use for connections
2 #define WIFI_SSID "Hackspace"
3 #define WIFI_PASS "electronics"
5 // This devices unique ID and shared auth secret
6 #define DEVICE_ID "frontdoor"
7 #define SECRET "abcdef"
10 #define AUTH_HOST "swansea.hackspace.org.uk"
11 #define AUTH_URL "/auth/log.php"
14 #define RST_PIN 5 // MFRC522 Reset Pin
15 #define SS_PIN 15 // MFRC522 Select Pin
20 #define LOCK_TIME 3000 // unlock for 3 seconds
22 // how long to try to connect the wifi
24 #define WIFI_DELAY 250 // 20 x 250mS == 5s
26 // how often to retry the connection
27 #define WIFI_RETRY 60000
29 // filename on SPIFFS that stores key list
30 #define KEYS_FILE "/keys"